Update t.sh

Former-commit-id: 5d94786930ffefbe25b8dd7ed99671d856a7a065
This commit is contained in:
fscarmen
2021-09-14 16:10:16 +08:00
committed by GitHub
parent be5677748b
commit e99295d5a7
+1 -1
View File
@@ -13,7 +13,7 @@ yellow(){
if [[ $(id -u) != 0 ]]; then red " 必须以root方式运行脚本,可以输入 sudo -i 后重新下载运行。 " ; exit 0; fi
# 判断当前 WARP 状态
if [[ $(wg) =~ private ]] >/dev/null 2>&1
if [[ $(wget -qO- -4 https://www.cloudflare.com/cdn-cgi/trace | grep warp ) =~ on || $(wget -qO- -6 https://www.cloudflare.com/cdn-cgi/trace | grep warp ) =~ on ]]
then wgcf=WARP已开启
else wgcf=WARP未开启
fi