mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-12 12:48:51 +00:00
Use bash ranges "{1..3}" instead of "$(seq 1 3)".
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user