From 122777f88681f4f67c1e09c4bce615626a29ba91 Mon Sep 17 00:00:00 2001 From: Remy Loubradou Date: Sun, 12 May 2013 18:58:56 +0100 Subject: [PATCH 1/3] Add support for Raspberry Pi. --- nvm.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/nvm.sh b/nvm.sh index 10631fe..b3f4dd4 100755 --- a/nvm.sh +++ b/nvm.sh @@ -157,6 +157,7 @@ nvm() case "$uname" in *x86_64*) arch=x64 ;; *i*86*) arch=x86 ;; + *armv6l*) arch=arm-pi;; esac # initialize local variables From 273f52adc2bd23ab0fb43471350d09070a1f7b4b Mon Sep 17 00:00:00 2001 From: Remy Loubradou Date: Sun, 12 May 2013 22:13:27 +0100 Subject: [PATCH 2/3] Ignore the checksum failure because the shasums are not available in SHASUMS.txt --- nvm.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nvm.sh b/nvm.sh index b3f4dd4..7e6a73d 100755 --- a/nvm.sh +++ b/nvm.sh @@ -116,6 +116,9 @@ nvm_checksum() { if [ "$1" = "$2" ]; then return + elif [[ "$VERSION" =~ ^v0\.10\.[0-5]$ && "$arch" == 'arm-pi' && "$binavail" == 1 ]]; then + echo 'Checksums matching failed but this failure will be ignored because no shasum is available for node v0.10.[0-5] for arm-pi' + return else echo 'Checksums do not match.' return 1 From 0ce43619442241d2e5fd9b4ec3491268ce681acb Mon Sep 17 00:00:00 2001 From: Remy Loubradou Date: Wed, 29 May 2013 10:54:02 +0100 Subject: [PATCH 3/3] Remove the check for the version because the checksums for the arm-pi builds will not be available ever. --- nvm.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nvm.sh b/nvm.sh index 7e6a73d..ccd86aa 100755 --- a/nvm.sh +++ b/nvm.sh @@ -116,8 +116,8 @@ nvm_checksum() { if [ "$1" = "$2" ]; then return - elif [[ "$VERSION" =~ ^v0\.10\.[0-5]$ && "$arch" == 'arm-pi' && "$binavail" == 1 ]]; then - echo 'Checksums matching failed but this failure will be ignored because no shasum is available for node v0.10.[0-5] for arm-pi' + elif [[ "$arch" == 'arm-pi' && "$binavail" == 1 ]]; then + echo 'Checksums matching failed but this failure will be ignored because no shasum is available for node for arm-pi' return else echo 'Checksums do not match.'