.bashrc: Stop spamming errors when npm doesn't exist

Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
Alan Orth 2014-10-30 23:05:41 +03:00
parent 9a93eef13f
commit caf2c3167d
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ export ANSIBLE_HOSTS=hosts
# if we have npm, we probably want to use npm binaries
# I don't like installing globally (npm -g), so add local
# node modules' bin to PATH
if test $(which npm); then
if test $(which npm >/dev/null 2>&1); then
PATH=$PATH:node_modules/.bin
fi