Skip to content

Commit 8dd1628

Browse files
UnmountAll is a no-op for missing mount points
Signed-off-by: Gabriel Adrian Samfira <[email protected]>
1 parent acff3ee commit 8dd1628

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

mount/mount_windows.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,9 @@ func UnmountAll(mount string, flags int) error {
177177
// This isn't an error, per the EINVAL handling in the Linux version
178178
return nil
179179
}
180+
if _, err := os.Stat(mount); os.IsNotExist(err) {
181+
return nil
182+
}
180183

181184
return Unmount(mount, flags)
182185
}

0 commit comments

Comments
 (0)