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"