fix: if case and capitalising variable

master
Sayanee 2015-03-02 12:19:34 +08:00
parent f8ee25ab5b
commit f8064b259d
1 changed files with 2 additions and 2 deletions

4
nvm.sh
View File

@ -938,8 +938,8 @@ nvm_install_node_binary() {
if nvm_binary_available "$VERSION"; then
local NVM_ARCH
NVM_ARCH="$(nvm_get_arch)"
if [ $nvm_arch = "armv6l" ]; then
nvm_arch="arm-pi"
if [ $NVM_ARCH == "armv6l" ]; then
NVM_ARCH="arm-pi"
fi
t="$VERSION-$NVM_OS-$nvm_arch"
url="$NVM_NODEJS_ORG_MIRROR/$VERSION/node-${t}.tar.gz"