diff options
| author | Mike McQuaid | 2013-11-12 15:42:46 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2013-11-12 15:44:30 +0000 |
| commit | be3e60fc95ff761b9688bf8c5daebdb7d06ecce8 (patch) | |
| tree | f434dc78eeb3ce1d57e0a5958461f40eb3fe8450 /Library/Homebrew | |
| parent | 81bf8a168ada914ec47ca5b37a9fe44f8d797fea (diff) | |
| download | brew-be3e60fc95ff761b9688bf8c5daebdb7d06ecce8.tar.bz2 | |
inreplace: odie for Homebrew developers.
Diffstat (limited to 'Library/Homebrew')
| -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 |
