From e4ebb69aaa3ae453578510c2005a4b9a683d65d4 Mon Sep 17 00:00:00 2001 From: "guillaume.lambert" Date: Wed, 8 Sep 2021 14:50:36 +0200 Subject: [COMMON] Fix deploy.sh/undeploy.sh scripts - fix bugs introduced after Honolulu - use exit code 1 rather than 0 when scripts are not called properly Issue-ID: OOM-2643 Signed-off-by: guillaume.lambert Change-Id: If4bff02bcf8c26b924ce6d5281d6ad35f3defa40 --- kubernetes/helm/plugins/deploy/deploy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kubernetes/helm/plugins/deploy/deploy.sh') diff --git a/kubernetes/helm/plugins/deploy/deploy.sh b/kubernetes/helm/plugins/deploy/deploy.sh index 536be7b4a9..2182dde1d6 100755 --- a/kubernetes/helm/plugins/deploy/deploy.sh +++ b/kubernetes/helm/plugins/deploy/deploy.sh @@ -91,7 +91,7 @@ deploy() { # validate params if [ -z "$1" ] || [ -z "$2" ]; then usage - exit 0 + exit 1 fi RELEASE=$1 @@ -123,7 +123,7 @@ deploy() { fi # determine if set-last-applied flag is enabled SET_LAST_APPLIED="false" - if expr"$FLAGS" : ".*--set-last-applied.*" ; then + if expr "$FLAGS" : ".*--set-last-applied.*" ; then FLAGS="$(echo $FLAGS| sed -n 's/--set-last-applied//p')" SET_LAST_APPLIED="true" fi -- cgit 1.2.3-korg