Commit 343fa6af authored by is151014's avatar is151014

reduced verbosity§

parent d0bb39e7
......@@ -7,6 +7,9 @@ if [ $# -ne 2 ] ; then
exit 1
fi
echo "path: $1"
echo "user: $2"
username="$2"
priv_key="$HOME/.ssh/keygen"
mp="$HOME/FH/"
......@@ -22,15 +25,15 @@ if [ ! -e $mp ] ; then
mkdir $mp
fi
fusermount -u $mp || true
echo sshfs $username@gate01.remote.lab $mp -o sync_readdir -o sshfs_sync -o reconnect
fusermount -u $mp 2> /dev/null || true
#echo sshfs $username@gate01.remote.lab $mp -o sync_readdir -o sshfs_sync -o reconnect
sshfs $username@gate01.remote.lab:/home/$username $mp -o sync_readdir -o sshfs_sync -o reconnect -o IdentityFile=$priv_key
unlink $mp/$1/Makefile || true
unlink $mp/$1/Makefile 2> /dev/null || true
ln -s $HOME/TEMPLATES/Makefile $mp/$1/Makefile
cd $mp/$1
make
unlink $mp/$1/Makefile || true
sync
cd $startdir
fusermount -u $mp || sudo umount $mp || true
fusermount -u $mp || sudo umount $mp 2> /dev/null || true
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment