Skip to content

Commit d472837

Browse files
authored
Merge pull request #42 from kelvintaywl/fix-helm-app-lookup
fix: look up app slug in list of Helm apps
2 parents e6a4c65 + a426a63 commit d472837

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kots-exporter/kots-exporter.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ check_postreq(){
7272
fi
7373

7474
# check if helm release exists
75-
if [[ "$(helm list -n "$namespace" -o yaml | yq '.[].name')" != "$slug" ]]
75+
if [[ "$(helm list -n "$namespace" -o yaml | yq -e 'map(.name) | contains([strenv(slug)])' > /dev/null 2>&1)" ]]
7676
then
7777
error_exit "Helm release $slug does not exist."
7878
fi

0 commit comments

Comments
 (0)