Suppress output of `nvm use`

+redirect errors to stdout
master
Koen Punt 2014-06-18 08:54:14 +02:00
parent 9a28706688
commit b16bf303ca
1 changed files with 2 additions and 2 deletions

View File

@ -5,9 +5,9 @@ DIR="$(command cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "$DIR/nvm.sh" source "$DIR/nvm.sh"
if [ -n "$NODE_VERSION" ]; then if [ -n "$NODE_VERSION" ]; then
nvm use $NODE_VERSION || (echo "NODE_VERSION not set" && exit 127) nvm use $NODE_VERSION > /dev/null || (echo "NODE_VERSION not set" >&2 && exit 127)
else else
nvm use || (echo "No .nvmrc file found" && exit 127) nvm use > /dev/null || (echo "No .nvmrc file found" >&2 && exit 127)
fi fi
exec $@ exec $@