mirror of https://github.com/perkeep/perkeep.git
Merge "Use the absolute diskutil path for unmounting"
This commit is contained in:
commit
4436452c68
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue