From 1b578182c05ee7ad5fc1dcfd1792a35d9de3e9eb Mon Sep 17 00:00:00 2001 From: Yang <40138451+HiMenma@users.noreply.github.com> Date: Thu, 18 May 2023 11:36:15 +0800 Subject: [PATCH] [bugfix]The software package is not downloaded correctly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复在centos x86环境,下载arm64包的bug --- install-frps.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install-frps.sh b/install-frps.sh index 08fdfeff..2a07de4e 100644 --- a/install-frps.sh +++ b/install-frps.sh @@ -122,7 +122,11 @@ check_os_bit(){ ARCHS="" if [[ `getconf WORD_BIT` = '32' && `getconf LONG_BIT` = '64' ]] ; then Is_64bit='y' - ARCHS="arm64" + if [[ "$(uname -m)" == "aarch64" ]]; then + ARCHS="arm64" + elif [[ "$(uname -m)" == "x86_64" ]]; then + ARCHS="amd64" + fi else Is_64bit='n' ARCHS="arm"