From 491a6a41831c7a24dca37ce463511088c002ec7c 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: Fri, 3 Jan 2025 13:20:40 +0800 Subject: [PATCH] Update serv00.sh --- serv00.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/serv00.sh b/serv00.sh index c055038..73b8123 100644 --- a/serv00.sh +++ b/serv00.sh @@ -23,6 +23,9 @@ if [[ -z "$IP" ]]; then IP=$(grep -m 1 "可用" ip.txt | awk -F ':' '{print $1}') if [ -z "$IP" ]; then IP=$(okip) +if [ -z "$IP" ]; then +IP=$(head -n 1 ip.txt | awk -F ':' '{print $1}') +fi fi fi green "你选择的IP为: $IP"