mirror of
https://github.com/everett7623/nodeloc_vps_test.git
synced 2024-12-28 01:05:19 +00:00
Update nodeloc_vps_autotest_ip.sh
This commit is contained in:
parent
7345c67aa9
commit
0616b38f83
@ -146,7 +146,11 @@ extract_ip_report() {
|
||||
local full_output=$(bash <(curl -Ls IP.Check.Place))
|
||||
|
||||
# 从输出中提取我们需要的部分,保留ANSI颜色代码和分隔符
|
||||
echo "$full_output" | sed -n '/^########################################################################$/,/按回车键返回主菜单.../{/按回车键返回主菜单.../!p}'
|
||||
echo "$full_output" | awk '
|
||||
/^########################################################################$/ {flag=1}
|
||||
flag && !/按回车键返回主菜单.../ {print}
|
||||
/按回车键返回主菜单.../ {flag=0}
|
||||
'
|
||||
}
|
||||
|
||||
#运行测试
|
||||
|
Loading…
Reference in New Issue
Block a user