Add Mac OS X fusermount replacement script

This commit is contained in:
Jakob Unterwurzacher 2017-02-14 21:38:28 +01:00
parent 3784901fce
commit 6be7808992
1 changed files with 14 additions and 0 deletions

14
contrib/fusermount Executable file
View File

@ -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"