diff options
Diffstat (limited to 'Library/Homebrew/utils')
| -rw-r--r-- | Library/Homebrew/utils/inreplace.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/utils/inreplace.rb b/Library/Homebrew/utils/inreplace.rb index 4b3cf9587..accb7d83c 100644 --- a/Library/Homebrew/utils/inreplace.rb +++ b/Library/Homebrew/utils/inreplace.rb @@ -9,6 +9,7 @@ module Utils s.extend(StringInreplaceExtension) yield s else + after = after.to_s if Symbol === after sub = s.gsub!(before, after) if sub.nil? opoo "inreplace in '#{path}' failed" |
