Skip to content
Snippets Groups Projects
Commit da5d4d25 authored by Bob Mottram's avatar Bob Mottram
Browse files

Check that architecture is detected when installing Go #72

parent 3039df10
No related branches found
No related tags found
No related merge requests found
......@@ -1167,6 +1167,10 @@ function image_setup_utils {
if [[ $ARCHITECTURE == *"arm"* ]]; then
GOARCH=armv6l
fi
if [ ! $GOARCH ]; then
echo $'System architecture was not specified when installing Go'
exit 6734378
fi
GO_SOURCE=https://storage.googleapis.com/golang/go${GO_VERSION}.linux-${GOARCH}.tar.gz
if [ ! -d ${rootdir}/root/build ]; then
......
......@@ -163,6 +163,11 @@ function mesh_upgrade_golang {
echo $"Using $GOARCH"
fi
fi
if [ ! $GOARCH ]; then
echo $'System architecture was not detected when installing Go'
echo "uname reports: $(uname -m)"
exit 63945284
fi
GO_SOURCE=https://storage.googleapis.com/golang/go${GO_VERSION}.linux-${GOARCH}.tar.gz
if [ ! -d ${rootdir}${INSTALL_DIR} ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment