Merge "Use the absolute diskutil path for unmounting"

This commit is contained in:
Brad Fitzpatrick 2014-12-21 00:21:07 +00:00 committed by Gerrit Code Review
commit 4436452c68
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ func Unmount(point string) error {
var cmd *exec.Cmd
switch runtime.GOOS {
case "darwin":
cmd = exec.Command("diskutil", "umount", "force", point)
cmd = exec.Command("/usr/sbin/diskutil", "umount", "force", point)
case "linux":
cmd = exec.Command("fusermount", "-u", point)
default: