aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/fusermount14
1 files changed, 14 insertions, 0 deletions
diff --git a/contrib/fusermount b/contrib/fusermount
new file mode 100755
index 0000000..15c12a0
--- /dev/null
+++ b/contrib/fusermount
@@ -0,0 +1,14 @@
+#!/bin/bash -eu
+#
+# Mac OS X does not have fusermount. Put this script into
+# your $PATH to emulate it using umount.
+#
+cd "$(dirname "$0")"
+MYNAME=$(basename "$0")
+if [[ $# -lt 1 ]] ; then
+ echo "$PWD/$MYNAME: missing argument"
+ exit 1
+fi
+# Get the mount point from the last argument, ignore everything else
+M=${@: -1}
+exec umount "$M"