Tidy up try_connect function
This commit is contained in:
1 parent
f9c43fecf4
commit
a5750dda2a
1 file changed
+3
-4
+3
-4
@@ -45,10 +45,9 @@ function internal_ip {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function try_connect {
|
function try_connect {
|
||||||
for i in $(seq 0 10); do
|
for i in {0..10}; do
|
||||||
if ssh -t $1 true; then
|
ssh -t $1 true && return
|
||||||
return
|
sleep 2
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user