From f836b176437e5644067616aa88efdbe17c60ce83 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 18 Sep 2017 15:44:59 +0100 Subject: [PATCH] arm64 for nodejs downloads #72 --- src/freedombone-utils-nodejs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/freedombone-utils-nodejs b/src/freedombone-utils-nodejs index dbd8ac62..2b19d591 100755 --- a/src/freedombone-utils-nodejs +++ b/src/freedombone-utils-nodejs @@ -46,10 +46,14 @@ NODEJS_INSTALLED_APPS_FILE=$HOME/.nodejs-apps function get_npm_arch { N_ARCH='x86' NPM_ARCH='ia32' - if [[ $ARCHITECTURE == 'arm'* || $ARCHITECTURE == *"aarch"* ]]; then + if [[ $ARCHITECTURE == 'arm'* ]]; then NPM_ARCH='armv7l' N_ARCH='arm' fi + if [[ $ARCHITECTURE == *"aarch"* ]]; then + NPM_ARCH='arm64' + N_ARCH='arm64' + fi if [[ $ARCHITECTURE == 'x86_64' || $ARCHITECTURE == 'amd64' ]]; then NPM_ARCH='x64' N_ARCH='x64'