Return a nonzero exit code from nvm_rc_version when no .nvmrc found
parent
64de890d07
commit
152904e3fb
3
nvm.sh
3
nvm.sh
|
@ -98,6 +98,9 @@ nvm_rc_version() {
|
||||||
if [ -e "$NVMRC_PATH" ]; then
|
if [ -e "$NVMRC_PATH" ]; then
|
||||||
read NVM_RC_VERSION < "$NVMRC_PATH"
|
read NVM_RC_VERSION < "$NVMRC_PATH"
|
||||||
echo "Found '$NVMRC_PATH' with version <$NVM_RC_VERSION>"
|
echo "Found '$NVMRC_PATH' with version <$NVM_RC_VERSION>"
|
||||||
|
else
|
||||||
|
>&2 echo "No .nvmrc file found"
|
||||||
|
return 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue