Skip to content
Snippets Groups Projects
Commit f4cfb9ee authored by ilovezfs's avatar ilovezfs
Browse files

bump-formula-pr: add --write option

intended to be used in combination with --dry-run for a not-so-dry run

the expected file modifications are made, but no git actions are taken
parent 394b0884
No related branches found
No related tags found
No related merge requests found
......@@ -38,6 +38,7 @@ module Homebrew
unless contents.errors.empty?
raise Utils::InreplaceError, path => contents.errors
end
path.atomic_write(contents) if ARGV.include?("--write")
contents
else
Utils::Inreplace.inreplace(path) do |s|
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment