From 6be7808992a1d9562b113b13831cd6d6a40114d6 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Tue, 14 Feb 2017 21:38:28 +0100 Subject: [PATCH] Add Mac OS X fusermount replacement script --- contrib/fusermount | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 contrib/fusermount 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"