Skip to content

Commit e2ff1e7

Browse files
committed
fix: Do a version check on nvm-exec
This check would display a message in case the `.nvmrc` version is not installed, and would not alter the output otherwise.
1 parent 294ff9e commit e2ff1e7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

nvm-exec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ unset NVM_CD_FLAGS
77
# shellcheck disable=SC1090,SC1091
88
\. "$DIR/nvm.sh" --no-use
99

10+
nvm_rc_version > /dev/null && nvm_ensure_version_installed "$NVM_RC_VERSION";
1011
if [ -n "$NODE_VERSION" ]; then
1112
nvm use "$NODE_VERSION" > /dev/null || exit 127
1213
elif ! nvm use >/dev/null 2>&1; then

0 commit comments

Comments
 (0)