From 902345a7922c918bae6dd6a836803c2df163e1c5 Mon Sep 17 00:00:00 2001 From: Jensfrank Date: Thu, 27 Jun 2024 13:41:18 +0800 Subject: [PATCH] Update nodeloc_vps_autotest_ip.sh --- nodeloc_vps_autotest_ip.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nodeloc_vps_autotest_ip.sh b/nodeloc_vps_autotest_ip.sh index c517947..fa64eef 100644 --- a/nodeloc_vps_autotest_ip.sh +++ b/nodeloc_vps_autotest_ip.sh @@ -137,10 +137,13 @@ run_all_tests() { } format_results() { +# 清理和格式化输出 +cleaned_output=$(echo "$ip_quality_result" | sed 's/.*\[\]# \([^[]*\)\[3m\([^[]*\)............... \([^%]*\)% \(.*\)/\1 - \3 - \4/g') + result="[tabs] [tab=\"IP质量\"] \`\`\` -$ip_quality_result +$cleaned_output \`\`\` [/tab] [/tabs]