From fae5523e736be8d12eb281b58195e580f8ab9d59 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sat, 11 Mar 2023 13:21:20 +0100 Subject: [PATCH] Update onpush_builder.yaml --- .github/workflows/onpush_builder.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/onpush_builder.yaml b/.github/workflows/onpush_builder.yaml index caa9b5b57..bb476d60a 100644 --- a/.github/workflows/onpush_builder.yaml +++ b/.github/workflows/onpush_builder.yaml @@ -89,10 +89,11 @@ jobs: cd "$path" # Get version if [ -f config.yaml ]; then - version=$(sed -e '/version/!d' -e 's/.*version: //' config.yaml) + version="$(sed -e '/version/!d' -e 's/.*version: //' config.yaml)" elif [ -f config.json ]; then - version=$(sed -e '/version/!d' -e 's/.*[^"]*"\([^"]*\)",/\1/' config.json) - else; exit 1 + version="$(sed -e '/version/!d' -e 's/.*[^"]*"\([^"]*\)",/\1/' config.json)" + else + exit 1 fi # Exit if test if [[ "$version" == *"test"* ]]; then exit 0; fi