Skip to content

Commit

Permalink
Merge pull request #42 from kelvintaywl/fix-helm-app-lookup
Browse files Browse the repository at this point in the history
fix: look up app slug in list of Helm apps
  • Loading branch information
soulchips authored Apr 4, 2023
2 parents e6a4c65 + a426a63 commit d472837
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kots-exporter/kots-exporter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ check_postreq(){
fi

# check if helm release exists
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)" ]]
then
error_exit "Helm release $slug does not exist."
fi
Expand Down

0 comments on commit d472837

Please sign in to comment.