.bashrc: Stop spamming errors when npm doesn't exist
Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
parent
9a93eef13f
commit
caf2c3167d
2
.bashrc
2
.bashrc
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user