From 476c7323734f34162ceaf309cda6c4baae7593b2 Mon Sep 17 00:00:00 2001 From: missytake Date: Sat, 30 Mar 2024 20:31:04 +0100 Subject: [PATCH] CI: use [] consistently --- .github/workflows/test-and-deploy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-and-deploy.yaml b/.github/workflows/test-and-deploy.yaml index 9680fb42..6c0b4452 100644 --- a/.github/workflows/test-and-deploy.yaml +++ b/.github/workflows/test-and-deploy.yaml @@ -28,7 +28,7 @@ jobs: rsync -avz root@staging.testrun.org:/var/lib/acme . || true rsync -avz root@staging.testrun.org:/etc/dkimkeys . || true # store previous acme & dkim state on ns.testrun.org, if it contains useful certs - if test -f dkimkeys/opendkim.private; then rsync -avz -e "ssh -o StrictHostKeyChecking=accept-new" dkimkeys root@ns.testrun.org:/tmp/ || true; fi + if [ -f dkimkeys/opendkim.private ]; then rsync -avz -e "ssh -o StrictHostKeyChecking=accept-new" dkimkeys root@ns.testrun.org:/tmp/ || true; fi if [ -z "$(ls -A acme/certs)" ]; then rsync -avz -e "ssh -o StrictHostKeyChecking=accept-new" acme root@ns.testrun.org:/tmp/ || true; fi - name: rebuild staging.testrun.org to have a clean VPS