aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/helm/plugins/undeploy
diff options
context:
space:
mode:
authorguillaume.lambert <guillaume.lambert@orange.com>2021-09-08 14:50:36 +0200
committerguillaume.lambert <guillaume.lambert@orange.com>2021-09-09 09:18:40 +0200
commite4ebb69aaa3ae453578510c2005a4b9a683d65d4 (patch)
tree068d50b887eb6085ff9121f7b88091c4db0c8df5 /kubernetes/helm/plugins/undeploy
parent6b6df44c23816874b9d138825ca1522492fe0a1d (diff)
[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 <guillaume.lambert@orange.com> Change-Id: If4bff02bcf8c26b924ce6d5281d6ad35f3defa40
Diffstat (limited to 'kubernetes/helm/plugins/undeploy')
-rwxr-xr-xkubernetes/helm/plugins/undeploy/undeploy.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/kubernetes/helm/plugins/undeploy/undeploy.sh b/kubernetes/helm/plugins/undeploy/undeploy.sh
index 72c64244c0..a3b0e3c623 100755
--- a/kubernetes/helm/plugins/undeploy/undeploy.sh
+++ b/kubernetes/helm/plugins/undeploy/undeploy.sh
@@ -29,9 +29,9 @@ undeploy() {
done
}
-if [ $# < 1 ]; then
+if [ -z "$1" ]; then
echo "Error: command 'undeploy' requires a release name"
- exit 0
+ exit 1
fi
case "${1:-"help"}" in