|
@@ -144,16 +144,23 @@ function mesh_upgrade_golang {
|
144
|
144
|
if [[ $ARCHITECTURE == *"amd64" || $ARCHITECTURE == "x86_64" ]]; then
|
145
|
145
|
GOARCH=amd64
|
146
|
146
|
fi
|
147
|
|
- if [[ $ARCHITECTURE == *"arm"* || $ARCHITECTURE == *"aarch"* ]]; then
|
|
147
|
+ if [[ $ARCHITECTURE == *"arm"* ]]; then
|
148
|
148
|
GOARCH=armv6l
|
149
|
149
|
fi
|
|
150
|
+ if [[ $ARCHITECTURE == *"aarch"* ]]; then
|
|
151
|
+ GOARCH=arm64
|
|
152
|
+ fi
|
150
|
153
|
if [ ! $GOARCH ]; then
|
151
|
154
|
echo $'No architecture specified'
|
152
|
155
|
ARCHITECTURE=$(uname -m)
|
153
|
|
- if [[ $ARCHITECTURE == "arm"* || $ARCHITECTURE == *"aarch"* ]]; then
|
|
156
|
+ if [[ $ARCHITECTURE == "arm"* ]]; then
|
154
|
157
|
GOARCH=armv6l
|
155
|
158
|
echo $"Using $GOARCH"
|
156
|
159
|
fi
|
|
160
|
+ if [[ $ARCHITECTURE == *"aarch"* ]]; then
|
|
161
|
+ GOARCH=arm64
|
|
162
|
+ echo $"Using $GOARCH"
|
|
163
|
+ fi
|
157
|
164
|
if [[ $ARCHITECTURE == "amd"* || $ARCHITECTURE == "x86_64" ]]; then
|
158
|
165
|
GOARCH=amd64
|
159
|
166
|
echo $"Using $GOARCH"
|