aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorEtienne Laurin2013-01-31 12:43:31 -0800
committerAdam Vandenberg2013-01-31 15:53:09 -0800
commit69efc210b2f71f5ec08811f254fe83cee04466e4 (patch)
treece86d24236b0fb17985c92aaa7f31c24ad433f54 /Library
parentb852b7e07731f27507185ac01e5ad8c04785f1de (diff)
downloadhomebrew-69efc210b2f71f5ec08811f254fe83cee04466e4.tar.bz2
node: fix test for external npm
Closes #15315. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/node.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Formula/node.rb b/Library/Formula/node.rb
index cccc43cd3..e78e337fa 100644
--- a/Library/Formula/node.rb
+++ b/Library/Formula/node.rb
@@ -34,7 +34,7 @@ class NpmNotInstalled < Requirement
satisfy :build_env => false do
begin
path = Pathname.new("#{modules_folder}/npm")
- not path.realpath.to_s.include?(HOMEBREW_CELLAR)
+ path.realpath.to_s.include?(HOMEBREW_CELLAR)
rescue Exception => e
true
end