Permalink
Browse files

[nodejs]: update not_if condition as suggested by the user adrian on …

…cookbooks site, so it doesn't fail when node is not installed
  • Loading branch information...
1 parent 00f6e84 commit 04c053d1c284258999a376f603a93d6e931d41f8 @mdxp mdxp committed Feb 27, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 recipes/default.rb
View
@@ -38,6 +38,5 @@
make && \
make install
EOH
- not_if do `#{node[:nodejs][:dir]}/bin/node -v`.include? "v#{node[:nodejs][:version]}" end
+ not_if "#{node[:nodejs][:dir]}/bin/node -v 2>&1 | grep 'v#{node[:nodejs][:version]}'"
end
-

0 comments on commit 04c053d

Please sign in to comment.