From 7f325085c4953fa39b171e61ed69b9b0069fd8bb Mon Sep 17 00:00:00 2001 From: ange Date: Wed, 5 Jun 2024 11:45:48 +0200 Subject: [PATCH] fix: bad return value --- manifests/bin/deploy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manifests/bin/deploy.sh b/manifests/bin/deploy.sh index 7b0a5bc..9c4dc9d 100755 --- a/manifests/bin/deploy.sh +++ b/manifests/bin/deploy.sh @@ -22,7 +22,7 @@ function kgseckey() { local ret ret="$(kubectl get secret "$sec" -o jsonpath="{.data.$key}" | base64 -d)" - if [ "$?" -eq 0 ] || [ -z "$ret" ]; then + if [ "$?" -ne 0 ] || [ -z "$ret" ]; then return 1 fi echo "$ret" @@ -34,7 +34,7 @@ function kgcmkey() { local ret; ret="$(kubectl get configmap "$cm" -o jsonpath="{.data.$key}")" - if [ "$?" -eq 0 ] || [ -z "$ret" ]; then + if [ "$?" -ne 0 ] || [ -z "$ret" ]; then return 1 fi echo "$ret"