This commit is contained in:
陆柯 2023-03-08 09:19:21 +08:00
parent e79356b310
commit 840b9e9da8

View File

@ -14,18 +14,18 @@ else
fi fi
fi fi
if [[ "$(uname)" = "Linux" ]] if [ "$(uname)" = "Linux" ]
then then
# 用 dpkg --print-architecture 更直接 # 用 dpkg --print-architecture 更直接
ARCH=`dpkg --print-architecture` ARCH=`dpkg --print-architecture`
else else
if [[ "$(uname -m)" = "aarch64" ]]; if [ "$(uname -m)" = "aarch64" ]
then then
ARCH=arm64 ARCH=arm64
elif [[ "$(uname -m)" = "armv7l" ]]; elif [ "$(uname -m)" = "armv7l" ]
then then
ARCH=arm ARCH=arm
elif [[ "$(uname -m)" = "x86_64" ]]; elif [ "$(uname -m)" = "x86_64" ]
then then
ARCH=amd64 ARCH=amd64
fi fi