Skip to content

Instantly share code, notes, and snippets.

@nvquanghuy
Created December 19, 2013 04:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nvquanghuy/8034406 to your computer and use it in GitHub Desktop.
Save nvquanghuy/8034406 to your computer and use it in GitHub Desktop.
#!/bin/bash
# File location: ~/.nvm/
DIR="$(command cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "$DIR/nvm.sh"
if [ ! "$NODE_VERSION" ]; then
echo 'NODE_VERSION not set'
exit 1
fi
nvm use $NODE_VERSION
exec $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment