add ARCH overwrite

This commit is contained in:
Michael Zanggl 2023-12-20 15:40:28 +09:00
parent 6c9cd2f2d1
commit 477353e1a4

5
nvm.sh
View File

@ -1923,6 +1923,11 @@ nvm_get_arch() {
local EXIT_CODE
local LONG_BIT
if [ -n "$NVM_NODEJS_ORG_ARCH" ]; then
nvm_echo "${NVM_NODEJS_ORG_ARCH}"
return
fi
NVM_OS="$(nvm_get_os)"
# If the OS is SunOS, first try to use pkgsrc to guess
# the most appropriate arch. If it's not available, use