From caf2c3167da20cc0ba3895c4623b1279a3bfe770 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Thu, 30 Oct 2014 23:05:41 +0300 Subject: [PATCH] .bashrc: Stop spamming errors when npm doesn't exist Signed-off-by: Alan Orth --- .bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index f87d875..778da48 100644 --- a/.bashrc +++ b/.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