[Fix] ensure `uname` is unaliased.

Closes #1105
Jordan Harband 2016-05-30 18:06:33 -07:00
parent b227f4dc77
commit 251a2f3409
No known key found for this signature in database
GPG Key ID: 64A196AEE0916D55
1 changed files with 2 additions and 2 deletions

4
nvm.sh
View File

@ -1110,7 +1110,7 @@ nvm_print_implicit_alias() {
nvm_get_os() { nvm_get_os() {
local NVM_UNAME local NVM_UNAME
NVM_UNAME="$(uname -a)" NVM_UNAME="$(command uname -a)"
local NVM_OS local NVM_OS
case "$NVM_UNAME" in case "$NVM_UNAME" in
Linux\ *) NVM_OS=linux ;; Linux\ *) NVM_OS=linux ;;
@ -1138,7 +1138,7 @@ nvm_get_arch() {
HOST_ARCH=$(isainfo -n) HOST_ARCH=$(isainfo -n)
fi fi
else else
HOST_ARCH="$(uname -m)" HOST_ARCH="$(command uname -m)"
fi fi
local NVM_ARCH local NVM_ARCH