Vendor dependencies with dep

This commit is contained in:
Alexander Neumann committed 2017-07-23 14:25:38 +02:00
1 parent df8a5792f1
commit 91edebf1fe
1691 files changed
+466360

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
package fuse
import (
"bytes"
"errors"
"os/exec"
)
func unmount(dir string) error {
cmd := exec.Command("fusermount", "-u", dir)
output, err := cmd.CombinedOutput()
if err != nil {
if len(output) > 0 {
output = bytes.TrimRight(output, "\n")
msg := err.Error() + ": " + string(output)
err = errors.New(msg)
}
return err
}
return nil
}