(dir string)
| 76 | } |
| 77 | |
| 78 | func tryUnmount(dir string) error { |
| 79 | if runtime.GOOS == "darwin" { |
| 80 | return exec.Command("diskutil", "umount", "force", dir).Run() |
| 81 | } |
| 82 | return exec.Command("fusermount", "-u", dir).Run() |
| 83 | } |
| 84 | |
| 85 | func (c *mountCmd) RunCommand(args []string) error { |
| 86 | err := c.checkFlags(args) |
no test coverage detected