goVersion="1.12.5" and add X86_32

This commit is contained in:
openoms
2019-05-11 10:42:37 +01:00
parent e44308e4a9
commit c2b6b2b9d7
2 changed files with 8 additions and 2 deletions

View File

@@ -32,13 +32,16 @@ goVersion="1.11"
echo "### Check Framework: GO ###"
goInstalled=$(go version 2>/dev/null | grep -c 'go')
if [ ${goInstalled} -eq 0 ];then
goVersion="1.12.4"
goVersion="1.12.5"
if [ ${isARM} -eq 1 ] || [ ${isAARCH64} -eq 1 ] ; then
goOSversion="armv6l"
fi
if [ ${isX86_64} -eq 1 ] ; then
goOSversion="amd64"
fi
if [ ${isX86_32} -eq 1 ] ; then
goOSversion="386"
fi
echo "*** Installing Go v${goVersion} for ${goOSversion} ***"

View File

@@ -17,13 +17,16 @@ fi
# make sure go is installed
goInstalled=$(go version 2>/dev/null | grep -c 'go')
if [ ${goInstalled} -eq 0 ];then
goVersion="1.12.4"
goVersion="1.12.5"
if [ ${isARM} -eq 1 ] || [ ${isAARCH64} -eq 1 ] ; then
goOSversion="armv6l"
fi
if [ ${isX86_64} -eq 1 ] ; then
goOSversion="amd64"
fi
if [ ${isX86_32} -eq 1 ] ; then
goOSversion="386"
fi
echo "*** Installing Go v${goVersion} for ${goOSversion} ***"