From a48edbb18ce5abeca51725765dc86505ad0c1c0b 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?= <121604513+yonggekkk@users.noreply.github.com> Date: Tue, 9 Sep 2025 17:46:04 +0800 Subject: [PATCH] Fix syntax for curl command checks in sb.sh --- sb.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sb.sh b/sb.sh index d77d758..dde120e 100644 --- a/sb.sh +++ b/sb.sh @@ -152,7 +152,7 @@ wgcfv4=$(curl -s4m5 https://www.cloudflare.com/cdn-cgi/trace -k | grep warp | cu v6(){ v4orv6(){ -if [ -z $(curl -s4m5 icanhazip.com -k) ]; then +if [ -z "$(curl -s4m5 icanhazip.com -k)" ]; then echo red "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" yellow "检测到 纯IPV6 VPS,添加NAT64" @@ -161,7 +161,7 @@ ipv=prefer_ipv6 else ipv=prefer_ipv4 fi -if [ -n $(curl -s6m5 icanhazip.com -k) ]; then +if [ -n "$(curl -s6m5 icanhazip.com -k)" ]; then endip=2606:4700:d0::a29f:c001 else endip=162.159.192.1