work script

This commit is contained in:
Christian Nieves
2022-07-28 12:51:20 -05:00
parent 323c90732c
commit 1bd3815184

View File

@ -13,7 +13,7 @@ gcertstatus || gcert
# Just keep reconnecting upon failure # Just keep reconnecting upon failure
while [ 1 ]; do while [ 1 ]; do
ssh -t $host $SSH_OPTS "$tmux_cmd" ssh $host -t $SSH_OPTS "$tmux_cmd"
# Don't reconnect if disconnection not due to error (i.e., user detached) # Don't reconnect if disconnection not due to error (i.e., user detached)
if [ $? -eq 0 ]; then break; fi if [ $? -eq 0 ]; then break; fi