[Fix] nvm_get_arch: proper value for alpine linux

This commit is contained in:
Andrius Solopovas
2023-09-30 23:54:11 +01:00
committed by Jordan Harband
parent b64e5474ea
commit ef7fc2f2c0
3 changed files with 139 additions and 3 deletions

4
nvm.sh
View File

@@ -1965,6 +1965,10 @@ nvm_get_arch() {
HOST_ARCH=armv7l
fi
if [ -f "/etc/alpine-release" ]; then
NVM_ARCH=x64-musl
fi
nvm_echo "${NVM_ARCH}"
}