Skip to content

Commit 5410ae5

Browse files
dewren99ljharb
authored andcommitted
[Fix] fix node download link for armv8l
Fixes #3035
1 parent 70aa611 commit 5410ae5

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

nvm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1913,7 +1913,7 @@ nvm_get_arch() {
19131913
case "${HOST_ARCH}" in
19141914
x86_64 | amd64) NVM_ARCH="x64" ;;
19151915
i*86) NVM_ARCH="x86" ;;
1916-
aarch64) NVM_ARCH="arm64" ;;
1916+
aarch64 | armv8l) NVM_ARCH="arm64" ;;
19171917
*) NVM_ARCH="${HOST_ARCH}" ;;
19181918
esac
19191919

test/fast/Unit tests/nvm_get_arch

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,5 +80,6 @@ run_test x86 osx x86
8080
run_test amd64 osx x64
8181

8282
run_test arm64 smartos x64
83+
run_test armv8l smartos x64
8384

8485
cleanup

test/mocks/uname_linux_armv8l

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
if [ "_$1" = "_-m" ]; then
2+
echo "armv8l"
3+
else
4+
echo "Linux 3.18.14-14721103 #1 SMP PREEMPT Thu Mar 5 20:35:37 KST 2020 armv8l armv8l armv8l GNU/Linux"
5+
fi

0 commit comments

Comments
 (0)