From e886285d4df0e76097c78202e0da132c004d3624 Mon Sep 17 00:00:00 2001 From: Giacomo Leidi Date: Fri, 6 Sep 2024 15:47:26 +0200 Subject: [PATCH] gocd: slfo-stagings: Fix syntax error. --- gocd/slfo-stagings.gocd.yaml | 2 +- gocd/slfo-stagings.gocd.yaml.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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