gocd: slfo-stagings: Fix syntax error.

This commit is contained in:
Giacomo Leidi 2024-09-06 15:47:26 +02:00
parent f4cbf0b601
commit e886285d4d
Signed by untrusted user: gleidi
GPG Key ID: DE9BE0ACE8246F08
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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