aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorMartin Afanasjew2015-11-09 23:08:50 +0100
committerXu Cheng2015-11-11 14:22:44 +0800
commit8091b33f85c96a93d14de80ce3bfd9c32f8bb58c (patch)
treec493db948a4457ecf4369d9f1ae8be5e4c034bf7 /Library/Homebrew/cmd
parent4296ec63ebe547466338a1df327a2069533bb5ec (diff)
downloadbrew-8091b33f85c96a93d14de80ce3bfd9c32f8bb58c.tar.bz2
ruby 1.8: address syntax warnings in Homebrew core
Closes Homebrew/homebrew#45849. Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/audit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index 1d293994f..231e583bb 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -600,7 +600,7 @@ class FormulaAuditor
problem "\"Formula.factory(name)\" is deprecated in favor of \"Formula[name]\""
end
- if text =~ /system "npm", "install"/ && text !~ %r[opt_libexec}/npm/bin]
+ if text =~ /system "npm", "install"/ && text !~ %r[opt_libexec\}/npm/bin]
need_npm = "\#{Formula[\"node\"].opt_libexec\}/npm/bin"
problem <<-EOS.undent
Please add ENV.prepend_path \"PATH\", \"#{need_npm}"\ to def install