configfiles/scripts/.config/scripts/sshw.sh
2015-10-08 10:31:53 +02:00

11 lines
171 B
Bash
Executable file

#!/bin/bash
# SSH Wrapper
# Shows if return value of ssh is != 0
ssh $@
ret=$?
if [ "$ret" != "0" ]; then
echo "Exit value: $ret"
while true; do sleep 5; done
fi