Permalink
Browse files

pull: 'which -s' => 'which >/dev/null' for Ubuntu

Closes issue #20
  • Loading branch information...
1 parent b4caca5 commit 42e44a6fb0f9cff7437f8f0fe1d93c599e4cb3d8 @jamiew committed Feb 8, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 pull
View
4 pull
@@ -39,13 +39,13 @@ fi
git remote prune $remote &
# Bundle em if you got em!
-if which -s bundle && [ -f Gemfile ]; then
+if which bundle >/dev/null && [ -f Gemfile ]; then
echo "* Bundling gems..."
bundle check >/dev/null 2>&1 || bundle install
fi
# Install node.js/npm packages
-if which -s npm && [ -f package.json ]; then
+if which npm >/dev/null && [ -f package.json ]; then
echo "* Installing npm packages..."
npm install
fi

0 comments on commit 42e44a6

Please sign in to comment.