sshfs module added echo of calling command

master
David Kebler 2020-11-21 08:59:08 -08:00
parent a3fabcc7cd
commit 1368a0b336
1 changed files with 2 additions and 1 deletions

View File

@ -9,7 +9,8 @@ HOST=$(sed 's/.*@\(.*\):.*/\1/' <<< "$1")
if [[ $(mounted $2) ]]; then
echo "remote $1 already mounted at $2, aborting mount"
else
echo "mounting via ssh $*"
echo "mounting via ssh"
echo sshfs "$@" -o default_permissions
sshfs "$@" -o default_permissions
fi
}