Skip to content

Commit

Permalink
allow failure for helm repo ls cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
tycooon committed Oct 14, 2024
1 parent e756d41 commit b7d4713
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/helmsnap/setup_dependencies.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def call
attr_accessor :config, :processed_paths

def clear_existing_repos!
result = run_cmd("helm", "repo", "ls").output
result = run_cmd("helm", "repo", "ls", allow_failure: true).output

result.scan(/#{REPO_NAME_PREFIX}\S+/o) do |repo_name|
run_cmd("helm", "repo", "remove", repo_name)
Expand Down

0 comments on commit b7d4713

Please sign in to comment.