From a0b056273933879ba099beb097c3316393ee37cd 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: Fri, 16 Dec 2022 13:34:35 +0000 Subject: [PATCH] Update CFwarp.sh --- CFwarp.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CFwarp.sh b/CFwarp.sh index ac31008..b577df1 100644 --- a/CFwarp.sh +++ b/CFwarp.sh @@ -246,7 +246,11 @@ systemctl restart warp-go systemctl enable warp-go systemctl start warp-go checkwgcf -[[ $wgcfv4 =~ on|plus || $wgcfv6 =~ on|plus ]] && green "恭喜!warp的IP获取成功!" && dns && break || red "遗憾!warp的IP获取失败" +if [[ $wgcfv4 =~ on|plus || $wgcfv6 =~ on|plus ]]; then +green "恭喜!warp的IP获取成功!" && dns && break +else +red "遗憾!warp的IP获取失败" +fi done if [[ ! $wgcfv4 =~ on|plus && ! $wgcfv6 =~ on|plus ]]; then yellow "安装WARP失败,还原VPS,卸载WARP组件中……"