diff --git a/entrypoint.sh b/entrypoint.sh index 3c06405..88aeed5 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -36,7 +36,7 @@ if [ "$EXTERNAL_SECRET" ]; then kubectl -n "$NAMESPACE" get es "$EXTERNAL_SECRET" -o json | jq - if [ "$(kubectl -n "$NAMESPACE" get es "$EXTERNAL_SECRET" -o json | jq '.status.conditions.[0].reason' | xargs)" == "SecretSynced" ]; then + if [ `kubectl -n "$NAMESPACE" get es "$EXTERNAL_SECRET" -o json | jq '.status.conditions.[0].reason' | xargs` == "SecretSynced" ]; then echo "$EXTERNAL_SECRET OK" else echo "$EXTERNAL_SECRET has an unvalid status, please review it"