mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-10 22:31:51 +00:00
Consistently returning exit code 1 when version is not installed yet.
This commit is contained in:
parent
f213167ef0
commit
4c38f507f5
2
nvm.sh
2
nvm.sh
@ -543,7 +543,7 @@ nvm() {
|
|||||||
|
|
||||||
if [ ! -d "$NVM_DIR/$VERSION" ]; then
|
if [ ! -d "$NVM_DIR/$VERSION" ]; then
|
||||||
echo "$VERSION version is not installed yet" >&2
|
echo "$VERSION version is not installed yet" >&2
|
||||||
return;
|
return 1
|
||||||
fi
|
fi
|
||||||
RUN_NODE_PATH=`nvm_strip_path "$NODE_PATH" "/lib/node_modules"`
|
RUN_NODE_PATH=`nvm_strip_path "$NODE_PATH" "/lib/node_modules"`
|
||||||
RUN_NODE_PATH=`nvm_prepend_path "$NODE_PATH" "$NVM_DIR/$VERSION/lib/node_modules"`
|
RUN_NODE_PATH=`nvm_prepend_path "$NODE_PATH" "$NVM_DIR/$VERSION/lib/node_modules"`
|
||||||
|
Loading…
Reference in New Issue
Block a user