configfiles/scripts/.config/scripts/sshw.sh

11 lines
171 B
Bash
Raw Normal View History

#!/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