diff options
| author | ilovezfs | 2016-09-04 11:25:00 -0700 |
|---|---|---|
| committer | ilovezfs | 2016-09-27 02:46:08 -0700 |
| commit | f4cfb9ee87788dca0c0ca8e90bf0d17c43f1706e (patch) | |
| tree | 3ffe5163c02963a6829f6a06cf4541558a6505ed /Library/Homebrew/dev-cmd | |
| parent | 394b0884ebd037ac69e44a6bab23d6e2341fb49c (diff) | |
| download | brew-f4cfb9ee87788dca0c0ca8e90bf0d17c43f1706e.tar.bz2 | |
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
Diffstat (limited to 'Library/Homebrew/dev-cmd')
| -rw-r--r-- | Library/Homebrew/dev-cmd/bump-formula-pr.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/dev-cmd/bump-formula-pr.rb b/Library/Homebrew/dev-cmd/bump-formula-pr.rb index a38d6edb5..4ad230703 100644 --- a/Library/Homebrew/dev-cmd/bump-formula-pr.rb +++ b/Library/Homebrew/dev-cmd/bump-formula-pr.rb @@ -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| |
