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
|
var cmd *exec.Cmd
|
||||||
switch runtime.GOOS {
|
switch runtime.GOOS {
|
||||||
case "darwin":
|
case "darwin":
|
||||||
cmd = exec.Command("diskutil", "umount", "force", point)
|
cmd = exec.Command("/usr/sbin/diskutil", "umount", "force", point)
|
||||||
case "linux":
|
case "linux":
|
||||||
cmd = exec.Command("fusermount", "-u", point)
|
cmd = exec.Command("fusermount", "-u", point)
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue