Skip to content

Commit

Permalink
Actions - test, bash syntax / while loop
Browse files Browse the repository at this point in the history
  • Loading branch information
hcartiaux committed May 12, 2024
1 parent 8282574 commit 93a510a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
- name: Wait for a successful ssh connection
run: |
max=300
while [[ ! $(ssh -i ~/.ssh/id_rsa -oPasswordAuthentication=no -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -oConnectTimeout=2 test@localhost -p 2222 true) ]] ; do
while ! ssh -i ~/.ssh/id_rsa -oPasswordAuthentication=no -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -oConnectTimeout=2 test@localhost -p 2222 true ; do
sleep 1 ; try=$((try + 1))
if [[ "$try" -gt "$max" ]] ; then
echo "== System configuration failed :( =="
Expand Down

0 comments on commit 93a510a

Please sign in to comment.