From 4d0954c16a5431eb8185e043f2479835e98296aa Mon Sep 17 00:00:00 2001 From: "Gervaise H. Henry" <gervaise.henry@utsouthwestern.edu> Date: Mon, 12 Apr 2021 12:59:50 -0500 Subject: [PATCH] Fix aws status check conditional --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 73df915..f086783 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1105,7 +1105,7 @@ aws: until [[ "${status}" == "SUCCEEDED" || "${status}" == "FAILED" ]]; do status=$(aws batch describe-jobs --jobs ${id} | grep -oP "status\": \K.*" | tr -d '"' | tr -d ',' | tr -d " " ) && echo ${status} - if [[ "${status}" != "SUCCEEDED" ] && [ "${status}" != "FAILED" ]]; then + if [ "${status}" != "SUCCEEDED" ] && [ "${status}" != "FAILED" ]; then sleep 1m fi done -- GitLab