From f8064b259d6ba6c1f4f0b498f43bc90c55daee3b Mon Sep 17 00:00:00 2001 From: Sayanee Date: Mon, 2 Mar 2015 12:19:34 +0800 Subject: [PATCH] fix: if case and capitalising variable --- nvm.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nvm.sh b/nvm.sh index 317c28f..de5f2b2 100755 --- a/nvm.sh +++ b/nvm.sh @@ -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"