From 6bd585b0b2e9ed92b100e51ac4bd2cf4b1682c63 Mon Sep 17 00:00:00 2001 From: Jensfrank Date: Thu, 27 Jun 2024 11:57:33 +0800 Subject: [PATCH] Update nodeloc_vps_autotest_ip.sh --- nodeloc_vps_autotest_ip.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nodeloc_vps_autotest_ip.sh b/nodeloc_vps_autotest_ip.sh index 8fffc9c..915e36d 100644 --- a/nodeloc_vps_autotest_ip.sh +++ b/nodeloc_vps_autotest_ip.sh @@ -161,7 +161,7 @@ format_results() { # 转义特殊字符 escaped_result=$(echo "$ip_quality_result" | sed 's/\\/\\\\/g; s/`/\\`/g; s/\$/\\$/g; s/\*/\\*/g; s/_/\\_/g') - cat << EOF | iconv -f UTF-8 -t UTF-8//IGNORE > results.md + result="[tabs] [tabs] [tab="IP质量"] \`\`\` @@ -169,8 +169,8 @@ $escaped_result \`\`\` [/tab] [/tabs] -EOF + echo "$result" > results.md echo -e "${GREEN}结果已保存到 results.md 文件中。${NC}" }