Browse Source

Updated arm64 uname output

TC 3 years ago
parent
commit
e61091cb36
1 changed files with 2 additions and 2 deletions
  1. 2 2
      documents/headless setup files/install_latest_hkwtc.sh

+ 2 - 2
documents/headless setup files/install_latest_hkwtc.sh

@@ -12,7 +12,7 @@ echo "Cloning ArozOS from source"
 git clone https://git.hkwtc.org/TC/arozos.git
 
 echo "Installing Golang"
-arch=$(uname -i)
+arch=$(uname -m)
 gover="1.17.6"
 if [[ $arch == x86_64* ]]; then
     echo "Selecting x64 Architecture"
@@ -27,7 +27,7 @@ elif [[ $arch == "unknown" ]]; then
         echo "Installing arm version of go"
         wget https://golang.org/dl/go$gover.linux-armv6l.tar.gz
     fi
-    if [ "$arch" = "arm64" ]; then
+    if [ "$arch" = "aarch64" ]; then
 	echo "Installing arm64 version of go"
 	wget https://golang.org/dl/go$gover.linux-arm64.tar.gz
     fi