Skip to content

Commit

Permalink
ssh loop instead of sleep 10
Browse files Browse the repository at this point in the history
  • Loading branch information
antipasta committed Oct 13, 2020
1 parent d3a0a88 commit 5719a9e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,9 @@ function vssh() {
if [[ $(docker ps -q --filter name=$SF_SSH_ENVIRON) = "" ]]; then
echo "Must connect to $SF_SSH_ENVIRON..."
vpnconnect $SF_SSH_ENVIRON
sleep 10
fi
ssh $@
until ssh $@; do
echo Attempting SSH...
sleep 1
done
}

0 comments on commit 5719a9e

Please sign in to comment.