From fb48129cd47d13bbb6a7fdb60c6e801ac09fa875 Mon Sep 17 00:00:00 2001 From: Sayanee Date: Sat, 28 Feb 2015 14:48:38 +0800 Subject: [PATCH] add support for node builds for armv6l named as arm-pi --- nvm.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) mode change 100644 => 100755 nvm.sh diff --git a/nvm.sh b/nvm.sh old mode 100644 new mode 100755 index 9fdfee7..da7cef0 --- a/nvm.sh +++ b/nvm.sh @@ -936,7 +936,11 @@ nvm_install_node_binary() { if [ -n "$NVM_OS" ]; then if nvm_binary_available "$VERSION"; then - t="$VERSION-$NVM_OS-$(nvm_get_arch)" + nvm_arch="$(nvm_get_arch)" + 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" 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