11 lines
171 B
Bash
11 lines
171 B
Bash
|
#!/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
|