Make nvm-exec respect .nvmrc

This commit is contained in:
Marco Pesenti Gritti 2014-04-25 16:03:13 +01:00
parent bad79e6d77
commit 032e398e96

View File

@ -4,7 +4,7 @@ DIR="$(command cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "$DIR/nvm.sh"
if [ ! "$NODE_VERSION" ]; then
if [ ! "$NODE_VERSION" ] && [ ! -e .nvmrc ]; then
echo 'NODE_VERSION not set'
exit 1
fi