Skip to content

Commit

Permalink
[Fix] fix node download link for armv8l
Browse files Browse the repository at this point in the history
Fixes #3035
  • Loading branch information
dewren99 authored and ljharb committed Apr 29, 2023
1 parent 70aa611 commit 5410ae5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion nvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1913,7 +1913,7 @@ nvm_get_arch() {
case "${HOST_ARCH}" in
x86_64 | amd64) NVM_ARCH="x64" ;;
i*86) NVM_ARCH="x86" ;;
aarch64) NVM_ARCH="arm64" ;;
aarch64 | armv8l) NVM_ARCH="arm64" ;;
*) NVM_ARCH="${HOST_ARCH}" ;;
esac

Expand Down
1 change: 1 addition & 0 deletions test/fast/Unit tests/nvm_get_arch
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,6 @@ run_test x86 osx x86
run_test amd64 osx x64

run_test arm64 smartos x64
run_test armv8l smartos x64

cleanup
5 changes: 5 additions & 0 deletions test/mocks/uname_linux_armv8l
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
if [ "_$1" = "_-m" ]; then
echo "armv8l"
else
echo "Linux 3.18.14-14721103 #1 SMP PREEMPT Thu Mar 5 20:35:37 KST 2020 armv8l armv8l armv8l GNU/Linux"
fi

0 comments on commit 5410ae5

Please sign in to comment.