From b14caecc1891944150a1fe15fbcc1aa945324c8a Mon Sep 17 00:00:00 2001 From: gfdgd_xi <3025613752@qq.com> Date: Sat, 4 Mar 2023 15:59:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9F=BA=E6=9C=AC=E5=AE=8C=E6=88=90BOX86?= =?UTF-8?q?=E5=AE=89=E8=A3=85=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- InstallBox86.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/InstallBox86.sh b/InstallBox86.sh index d308f0b..2270791 100755 --- a/InstallBox86.sh +++ b/InstallBox86.sh @@ -1,6 +1,6 @@ #!/bin/bash -PCArch=`arch` -if [[ $PCArch != "" ]] && [[ $PCArch != "" ]]; then +PCArch=`dpkg --print-architecture` +if [[ $PCArch != "aarch64" ]] && [[ $PCArch != "arm64" ]]; then echo 非 ARM 架构,无法继续 echo 按任意键退出 read @@ -17,7 +17,7 @@ echo deb https://code.gitlink.org.cn/gfdgd_xi/weekly-box86-debs/raw/branch/main/ echo "adding key..." wget -qO- https://code.gitlink.org.cn/gfdgd_xi/weekly-box86-debs/raw/branch/main/debian/KEY.gpg | sudo apt-key add - installBox=box86 -if [[ $PCArch == "" ]]; then +if [[ $PCArch == "arm64" ]]; then installBox="box86 box64" sudo dpkg --add-architecture armhf fi