From 93a510af33752ed9a55b4b572732ffea73b881e5 Mon Sep 17 00:00:00 2001 From: Hyacinthe Cartiaux Date: Mon, 13 May 2024 01:27:25 +0200 Subject: [PATCH] Actions - test, bash syntax / while loop --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index db9d0f2..0dca460 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 :( =="