amend all variables nvm_arch to capitalise

master
Sayanee 2015-03-02 12:28:21 +08:00
parent f8064b259d
commit 16a730f4cc
1 changed files with 2 additions and 2 deletions

4
nvm.sh
View File

@ -938,10 +938,10 @@ nvm_install_node_binary() {
if nvm_binary_available "$VERSION"; then if nvm_binary_available "$VERSION"; then
local NVM_ARCH local NVM_ARCH
NVM_ARCH="$(nvm_get_arch)" NVM_ARCH="$(nvm_get_arch)"
if [ $NVM_ARCH == "armv6l" ]; then if [ $NVM_ARCH = "armv6l" ]; then
NVM_ARCH="arm-pi" NVM_ARCH="arm-pi"
fi fi
t="$VERSION-$NVM_OS-$nvm_arch" t="$VERSION-$NVM_OS-$NVM_ARCH"
url="$NVM_NODEJS_ORG_MIRROR/$VERSION/node-${t}.tar.gz" url="$NVM_NODEJS_ORG_MIRROR/$VERSION/node-${t}.tar.gz"
sum=`nvm_download -L -s $NVM_NODEJS_ORG_MIRROR/$VERSION/SHASUMS.txt -o - | command grep node-${t}.tar.gz | command awk '{print $1}'` sum=`nvm_download -L -s $NVM_NODEJS_ORG_MIRROR/$VERSION/SHASUMS.txt -o - | command grep node-${t}.tar.gz | command awk '{print $1}'`
local tmpdir local tmpdir