Select arm downloads for aarch #72
This commit is contained in:
parent
9117ee7118
commit
2e99116062
|
@ -408,13 +408,13 @@ function mesh_install_ipfs_go {
|
|||
if [[ $ARCHITECTURE == *"amd64" || $ARCHITECTURE == "x86_64" ]]; then
|
||||
IPFS_ARCH=amd64
|
||||
fi
|
||||
if [[ $ARCHITECTURE == *"arm"* ]]; then
|
||||
if [[ $ARCHITECTURE == *"arm"* || $ARCHITECTURE == *"aarch"* ]]; then
|
||||
IPFS_ARCH=arm
|
||||
fi
|
||||
if [ ! $IPFS_ARCH ]; then
|
||||
echo $'No architecture specified'
|
||||
ARCHITECTURE=$(uname -m)
|
||||
if [[ $ARCHITECTURE == "arm"* ]]; then
|
||||
if [[ $ARCHITECTURE == "arm"* || $ARCHITECTURE == *"aarch"* ]]; then
|
||||
IPFS_ARCH=arm
|
||||
echo $"Using $IPFS_ARCH"
|
||||
fi
|
||||
|
|
|
@ -1164,7 +1164,7 @@ function image_setup_utils {
|
|||
if [[ $ARCHITECTURE == *"amd64" || $ARCHITECTURE == "x86_64" ]]; then
|
||||
GOARCH=amd64
|
||||
fi
|
||||
if [[ $ARCHITECTURE == *"arm"* ]]; then
|
||||
if [[ $ARCHITECTURE == *"arm"* || $ARCHITECTURE == *"aarch"* ]]; then
|
||||
GOARCH=armv6l
|
||||
fi
|
||||
if [ ! $GOARCH ]; then
|
||||
|
|
|
@ -144,13 +144,13 @@ function mesh_upgrade_golang {
|
|||
if [[ $ARCHITECTURE == *"amd64" || $ARCHITECTURE == "x86_64" ]]; then
|
||||
GOARCH=amd64
|
||||
fi
|
||||
if [[ $ARCHITECTURE == *"arm"* ]]; then
|
||||
if [[ $ARCHITECTURE == *"arm"* || $ARCHITECTURE == *"aarch"* ]]; then
|
||||
GOARCH=armv6l
|
||||
fi
|
||||
if [ ! $GOARCH ]; then
|
||||
echo $'No architecture specified'
|
||||
ARCHITECTURE=$(uname -m)
|
||||
if [[ $ARCHITECTURE == "arm"* ]]; then
|
||||
if [[ $ARCHITECTURE == "arm"* || $ARCHITECTURE == *"aarch"* ]]; then
|
||||
GOARCH=armv6l
|
||||
echo $"Using $GOARCH"
|
||||
fi
|
||||
|
|
|
@ -46,7 +46,7 @@ NODEJS_INSTALLED_APPS_FILE=$HOME/.nodejs-apps
|
|||
function get_npm_arch {
|
||||
N_ARCH='x86'
|
||||
NPM_ARCH='ia32'
|
||||
if [[ $ARCHITECTURE == 'arm'* ]]; then
|
||||
if [[ $ARCHITECTURE == 'arm'* || $ARCHITECTURE == *"aarch"* ]]; then
|
||||
NPM_ARCH='armv7l'
|
||||
N_ARCH='arm'
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue