Skip to content

Commit

Permalink
Merge pull request #438 from koenpunt/patch-2
Browse files Browse the repository at this point in the history
Suppress output of `nvm use`
  • Loading branch information
ljharb committed Jun 18, 2014
2 parents 9a28706 + b16bf30 commit 519a948
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nvm-exec
Expand Up @@ -5,9 +5,9 @@ DIR="$(command cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "$DIR/nvm.sh"

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
nvm use || (echo "No .nvmrc file found" && exit 127)
nvm use > /dev/null || (echo "No .nvmrc file found" >&2 && exit 127)
fi

exec $@
Expand Down

0 comments on commit 519a948

Please sign in to comment.