From a28c5d53865604aad0f6c33513b051cb2af1f865 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=AC=E5=93=A5=E4=BE=83=E4=BE=83=E4=BE=83ygkkk?= Date: Thu, 30 Mar 2023 08:58:00 +0000 Subject: [PATCH] Update CFwarp.sh --- CFwarp.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CFwarp.sh b/CFwarp.sh index 26f898d..c90c03e 100644 --- a/CFwarp.sh +++ b/CFwarp.sh @@ -1761,6 +1761,11 @@ start_menu fi } +bug(){ +red "检测到WARP安装环境异常" +yellow "再次运行脚本前,请先运行 rm -rf /usr/local/bin/warp-go /usr/bin/wg-quick" +} + startCFwarp(){ clear green "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" @@ -1803,6 +1808,6 @@ ONEWGCFWARP elif [[ -n $(type -P wg-quick) && -n $(type -P warp-cli) && -z $(type -P warp-go) ]] && [[ -f '/root/CFwarp.sh' ]]; then ONEWGCFWARP else -startCFwarp +bug && sleep 2 && exit fi fi