diff --git a/gocd/slfo-stagings.gocd.yaml b/gocd/slfo-stagings.gocd.yaml index 7d1dcde03..01233fd3a 100644 --- a/gocd/slfo-stagings.gocd.yaml +++ b/gocd/slfo-stagings.gocd.yaml @@ -30,7 +30,7 @@ pipelines: cd scripts/gocd status="$(osc -A $STAGING_API api /build/$SLFO_RING_1_PROJECT/standard/x86_64?view=status | grep 'code=' | sed -E 's/^.*code="(.*)".*$/\1/')" echo $SLFO_RING_1_PROJECT status: "${status}" - if [ printf '%s' "${status}" | grep -q finished ]; then + if printf '%s' "${status}" | grep -q finished; then exit 0 else exit 1 diff --git a/gocd/slfo-stagings.gocd.yaml.erb b/gocd/slfo-stagings.gocd.yaml.erb index 51e243632..15b49c1b7 100644 --- a/gocd/slfo-stagings.gocd.yaml.erb +++ b/gocd/slfo-stagings.gocd.yaml.erb @@ -31,7 +31,7 @@ pipelines: cd scripts/gocd status="$(osc -A $STAGING_API api /build/$SLFO_RING_1_PROJECT/standard/x86_64?view=status | grep 'code=' | sed -E 's/^.*code="(.*)".*$/\1/')" echo $SLFO_RING_1_PROJECT status: "${status}" - if [ printf '%s' "${status}" | grep -q finished ]; then + if printf '%s' "${status}" | grep -q finished; then exit 0 else exit 1