mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-12-12 16:14:18 +00:00
Compare commits
2 Commits
v0.40.3
...
b6d163a743
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b6d163a743 | ||
|
|
477353e1a4 |
5
nvm.sh
5
nvm.sh
@@ -2044,6 +2044,11 @@ nvm_get_arch() {
|
|||||||
local EXIT_CODE
|
local EXIT_CODE
|
||||||
local LONG_BIT
|
local LONG_BIT
|
||||||
|
|
||||||
|
if [ -n "$NVM_NODEJS_ORG_ARCH" ]; then
|
||||||
|
nvm_echo "${NVM_NODEJS_ORG_ARCH}"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
NVM_OS="$(nvm_get_os)"
|
NVM_OS="$(nvm_get_os)"
|
||||||
# If the OS is SunOS, first try to use pkgsrc to guess
|
# If the OS is SunOS, first try to use pkgsrc to guess
|
||||||
# the most appropriate arch. If it's not available, use
|
# the most appropriate arch. If it's not available, use
|
||||||
|
|||||||
Reference in New Issue
Block a user