[gnome-build-meta/sthursfield/james/openqa-master] openqa: Fix broken script



commit 3c0d32b89bd1c5f5b9dd2a8e3d92456be74526fc
Author: Sam Thursfield <sam afuera me uk>
Date:   Mon Aug 9 15:18:09 2021 +0200

    openqa: Fix broken script

 openqa/utils/wait_for_job.sh | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/openqa/utils/wait_for_job.sh b/openqa/utils/wait_for_job.sh
index e96e8022..d4046e3f 100755
--- a/openqa/utils/wait_for_job.sh
+++ b/openqa/utils/wait_for_job.sh
@@ -8,10 +8,12 @@ set -eu
 
 job_id=$1
 
-alias job_check="openqa-cli api --apikey $OPENQA_API_KEY \
-  --apisecret $OPENQA_API_KEY \
-  --host $OPENQA_HOST \
-  jobs/${job_id}"
+job_check() {
+    openqa-cli api --apikey $OPENQA_API_KEY \
+        --apisecret $OPENQA_API_KEY \
+        --host $OPENQA_HOST \
+        jobs/${job_id}
+}
 
 state=$(job_check | jq .job.state)
 while [ "$state" != "\"done\"" ]; do sleep 10 && state=$(job_check | jq .job.state); done


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]