From a61487ea842a83b927c689f3b38fbb3edd289b8a Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Fri, 10 Jan 2014 00:08:53 +0100 Subject: add a bunch of new scripts Signed-off-by: Florian Pritz --- sftp-mount.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 sftp-mount.sh (limited to 'sftp-mount.sh') diff --git a/sftp-mount.sh b/sftp-mount.sh new file mode 100755 index 0000000..e2fb3ae --- /dev/null +++ b/sftp-mount.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +set -e + +mnt=~/mnt/$1 + +if ! mountpoint -q $mnt; then + mkdir -p $mnt + sshfs web-$1@karif: $mnt +else + fusermount -u $mnt + rmdir $mnt +fi -- cgit v1.2.3-24-g4f1b