Browse Source

更新 'documents/headless setup files/install_latest_hkwtc.sh'

TC 3 năm trước cách đây
mục cha
commit
c92849ef9d
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      documents/headless setup files/install_latest_hkwtc.sh

+ 4 - 1
documents/headless setup files/install_latest_hkwtc.sh

@@ -19,6 +19,9 @@ if [[ $arch == x86_64* ]]; then
     wget https://golang.org/dl/go$gover.linux-amd64.tar.gz
 elif  [[ $arch == arm* ]]; then
     echo "Selecting ARM Architecture"
+    wget https://golang.org/dl/go$gover.linux-armv6l.tar.gz
+elif  [[ $arch == "aarch64" ]]; then
+    echo "Selecting ARM64 Architecture"
     wget https://golang.org/dl/go$gover.linux-arm64.tar.gz
 elif [[ $arch == "unknown" ]]; then
     echo "Unknown CPU arch. Please enter CPU architecture manually (arm/arm64/amd64)"
@@ -27,7 +30,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" = "aarch64" ]; then
+    if [ "$arch" = "arm64" ]; then
 	echo "Installing arm64 version of go"
 	wget https://golang.org/dl/go$gover.linux-arm64.tar.gz
     fi