mirror of
https://gitlab.com/fscarmen/warp.git
synced 2026-06-25 15:42:40 +08:00
Update t.sh
Former-commit-id: 84f3e9e141540e0dcc19fe6242c46db75618aecd
This commit is contained in:
@@ -9,11 +9,11 @@ yellow(){
|
||||
echo -e "\033[33m\033[01m$1\033[0m"
|
||||
}
|
||||
|
||||
green " 检查环境中…… "
|
||||
|
||||
# 必须以root运行脚本
|
||||
[[ $(id -u) != 0 ]] && red " 必须以root方式运行脚本,可以输入 sudo -i 后重新下载运行。 " && exit 0
|
||||
|
||||
green " 检查环境中…… "
|
||||
|
||||
# 判断处理器架构
|
||||
[[ $(hostnamectl | grep -i Architecture) =~ arm ]] && architecture=arm64 || architecture=amd64
|
||||
|
||||
|
||||
Reference in New Issue
Block a user