From 67f2ee82ca5a84dcf8d57d6ef93b608e85604c97 Mon Sep 17 00:00:00 2001 From: lukechilds Date: Sat, 13 Jun 2015 10:13:15 +0100 Subject: [PATCH] POSIX compatibility --- nvm.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nvm.sh b/nvm.sh index 32860a3..1b717b1 100755 --- a/nvm.sh +++ b/nvm.sh @@ -1024,8 +1024,8 @@ nvm_install_node_source() { local NVM_ARCH NVM_ARCH="$(nvm_get_arch)" - if [[ $NVM_ARCH = *"arm"* ]]; then - ADDITIONAL_PARAMETERS+=" --without-snapshot" + if [ $NVM_ARCH = "armv6l" ] || [ $NVM_ARCH = "armv7l" ]; then + ADDITIONAL_PARAMETERS="--without-snapshot $ADDITIONAL_PARAMETERS" fi if [ -n "$ADDITIONAL_PARAMETERS" ]; then