diff --git a/home.admin/97addMobileWalletLNDconnect.sh b/home.admin/97addMobileWalletLNDconnect.sh index c3f9267e0..6c982436b 100755 --- a/home.admin/97addMobileWalletLNDconnect.sh +++ b/home.admin/97addMobileWalletLNDconnect.sh @@ -27,6 +27,12 @@ if [ ${#GOPATH} -eq 0 ]; then export PATH=$PATH:$GOPATH/bin fi +# get cpu architecture +isARM=$(uname -m | grep -c 'arm') +isAARCH64=$(uname -m | grep -c 'aarch64') +isX86_64=$(uname -m | grep -c 'x86_64') +isX86_32=$(uname -m | grep -c 'i386\|i486\|i586\|i686\|i786') + # make sure go is installed goVersion="1.11" echo "### Check Framework: GO ###" diff --git a/home.admin/97addMobileWalletZeus.sh b/home.admin/97addMobileWalletZeus.sh index d2304e05b..2117a7a38 100644 --- a/home.admin/97addMobileWalletZeus.sh +++ b/home.admin/97addMobileWalletZeus.sh @@ -14,6 +14,12 @@ if [ ${#GOPATH} -eq 0 ]; then export PATH=$PATH:$GOPATH/bin fi +# get cpu architecture +isARM=$(uname -m | grep -c 'arm') +isAARCH64=$(uname -m | grep -c 'aarch64') +isX86_64=$(uname -m | grep -c 'x86_64') +isX86_32=$(uname -m | grep -c 'i386\|i486\|i586\|i686\|i786') + # make sure go is installed goInstalled=$(go version 2>/dev/null | grep -c 'go') if [ ${goInstalled} -eq 0 ];then