We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e6a4c65 + a426a63 commit d472837Copy full SHA for d472837
kots-exporter/kots-exporter.sh
@@ -72,7 +72,7 @@ check_postreq(){
72
fi
73
74
# check if helm release exists
75
- if [[ "$(helm list -n "$namespace" -o yaml | yq '.[].name')" != "$slug" ]]
+ if [[ "$(helm list -n "$namespace" -o yaml | yq -e 'map(.name) | contains([strenv(slug)])' > /dev/null 2>&1)" ]]
76
then
77
error_exit "Helm release $slug does not exist."
78
0 commit comments