mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-10 21:00:36 +02:00
fix missing cpu arch detect
This commit is contained in:
parent
4e29c82a58
commit
89d97df1e9
@ -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 ###"
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user