Skip to content

Commit

Permalink
main: restore force arg
Browse files Browse the repository at this point in the history
  • Loading branch information
dawidd6 committed Oct 15, 2024
1 parent c37ffa0 commit 09e81ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.rb
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ def read_brew(*args)
*("--version=#{version}" unless is_git),
*("--tag=#{tag}" if is_git),
*("--revision=#{revision}" if is_git),
*("--force" unless force.false?),
formula
else
# Support multiple formulae in input and change to full names if tap
Expand Down Expand Up @@ -160,6 +161,7 @@ def read_brew(*args)
"--version=#{version}",
*("--fork-org=#{org}" unless org.blank?),
*("--no-fork" unless no_fork.false?),
*("--force" unless force.false?),
formula
rescue ErrorDuringExecution => e
# Continue execution on error, but save the exeception
Expand Down

0 comments on commit 09e81ec

Please sign in to comment.