Use bash ranges "{1..3}" instead of "$(seq 1 3)".

This commit is contained in:
Ryan Hitchman
2016-06-03 10:42:38 -07:00
parent 364f2da548
commit 5508e49ef5
10 changed files with 13 additions and 13 deletions

View File

@@ -1547,7 +1547,7 @@ function ssh-to-node {
local ip=$(get_ssh_hostname ${node})
for try in $(seq 1 5); do
for try in {1..5}; do
if ssh -oLogLevel=quiet -oConnectTimeout=30 -oStrictHostKeyChecking=no -i "${AWS_SSH_KEY}" ${SSH_USER}@${ip} "echo test > /dev/null"; then
break
fi