[Refactor] nvm.sh minor refactor
parent
257f16fb13
commit
d8538dad84
7
nvm.sh
7
nvm.sh
|
@ -2973,9 +2973,8 @@ nvm() {
|
||||||
if [ -n "$NVM_BIN" ]; then
|
if [ -n "$NVM_BIN" ]; then
|
||||||
nvm_echo "$NVM_BIN"
|
nvm_echo "$NVM_BIN"
|
||||||
return
|
return
|
||||||
else
|
|
||||||
return 1
|
|
||||||
fi
|
fi
|
||||||
|
return 1
|
||||||
else
|
else
|
||||||
nvm_err 'System version of node not found.'
|
nvm_err 'System version of node not found.'
|
||||||
return 127
|
return 127
|
||||||
|
@ -3231,8 +3230,8 @@ nvm_supports_xz() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# 0.10x: node v0.10.42 and later have xz
|
# 0.10x: node v0.10.42 and later have xz
|
||||||
if nvm_version_greater_than_or_equal_to "$1" "0.10.42" \
|
if nvm_version_greater_than_or_equal_to "${1}" "0.10.42" \
|
||||||
&& nvm_version_greater "0.11.0" "$1"; then
|
&& nvm_version_greater "0.11.0" "${1}"; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue