Various updates

This commit is contained in:
Andrew Tomaka 2013-09-18 21:08:28 -04:00
parent 12f726a4fa
commit 324fe1adba
4 changed files with 18 additions and 1 deletions

View file

@ -17,5 +17,9 @@ function port-forward {
}
function map-sshfs {
sshfs -o idmap=user -o workaround=rename $USER'@'$1':'$2 $HOME'/Mounts/'$3
if [ $# -eq 0 ]; then
echo Usage: map-sshfs HOST DIRECTORY MOUNT
else
sshfs -o idmap=user -o workaround=rename $USER'@'$1':'$2 $HOME'/Mounts/'$3
fi
}