From 90d7427bc1a0d11ba762cc2f577bae13b2b75ba2 Mon Sep 17 00:00:00 2001 From: Jensfrank Date: Thu, 27 Jun 2024 16:25:39 +0800 Subject: [PATCH] Update nodeloc_vps_autotest_ip.sh --- nodeloc_vps_autotest_ip.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/nodeloc_vps_autotest_ip.sh b/nodeloc_vps_autotest_ip.sh index 319af70..70292f4 100644 --- a/nodeloc_vps_autotest_ip.sh +++ b/nodeloc_vps_autotest_ip.sh @@ -116,6 +116,7 @@ declare -a test_results ip_process_output() { local input="$1" local start_line=$(echo "$input" | grep -n '正在检测黑名单数据库' | tail -n 1 | cut -d ':' -f 1) + start_line=$((start_line + 1)) # 移动到下一行 local end_line=$(echo "$input" | grep -n '按回车键返回主菜单' | head -n 1 | cut -d ':' -f 1) if [ -n "$start_line" ] && [ -n "$end_line" ]; then