Use `uname -m` instead of `uname -a`.
Fixes #744.
parent
0aac462b15
commit
a6f5eff0f3
8
nvm.sh
8
nvm.sh
|
@ -870,12 +870,12 @@ nvm_get_os() {
|
||||||
|
|
||||||
nvm_get_arch() {
|
nvm_get_arch() {
|
||||||
local NVM_UNAME
|
local NVM_UNAME
|
||||||
NVM_UNAME="$(uname -a)"
|
NVM_UNAME="$(uname -m)"
|
||||||
local NVM_ARCH
|
local NVM_ARCH
|
||||||
case "$NVM_UNAME" in
|
case "$NVM_UNAME" in
|
||||||
*x86_64*) NVM_ARCH=x64 ;;
|
x86_64) NVM_ARCH="x64" ;;
|
||||||
*i*86*) NVM_ARCH=x86 ;;
|
i*86) NVM_ARCH="x86" ;;
|
||||||
*) NVM_ARCH="$(uname -m)" ;;
|
*) NVM_ARCH="$NVM_UNAME" ;;
|
||||||
esac
|
esac
|
||||||
echo "$NVM_ARCH"
|
echo "$NVM_ARCH"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue