Skip to content
Snippets Groups Projects
Commit be3e60fc authored by Mike McQuaid's avatar Mike McQuaid
Browse files

inreplace: odie for Homebrew developers.

parent 81bf8a16
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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