diff options
| author | Mike McQuaid | 2013-11-12 15:42:46 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2013-11-12 15:44:30 +0000 |
| commit | 5c8396b145ed4022668bc917173b53d4c70ec669 (patch) | |
| tree | 7208c8621eae4c926acfe848b34d1009101cac86 /Library/Homebrew/utils | |
| parent | 0bcebe4523fbe4c57246dbbb1d807177b44aafc6 (diff) | |
| download | homebrew-5c8396b145ed4022668bc917173b53d4c70ec669.tar.bz2 | |
inreplace: odie for Homebrew developers.
Diffstat (limited to 'Library/Homebrew/utils')
| -rw-r--r-- | Library/Homebrew/utils/inreplace.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Library/Homebrew/utils/inreplace.rb b/Library/Homebrew/utils/inreplace.rb index b4bc05468..287058021 100644 --- a/Library/Homebrew/utils/inreplace.rb +++ b/Library/Homebrew/utils/inreplace.rb @@ -12,8 +12,11 @@ module Utils after = after.to_s if Symbol === after sub = s.gsub!(before, after) if sub.nil? - opoo "inreplace in '#{path}' failed" - puts "Expected replacement of '#{before}' with '#{after}'" + message = <<-EOS.undent + inreplace in '#{path}' failed + Expected replacement of '#{before}' with '#{after}' + EOS + ARGV.homebrew_developer? ? odie(message) : opoo(message) end end |
