From 82e4de74c5cce306036537909d6160c25cc1bfc8 Mon Sep 17 00:00:00 2001 From: Jensfrank Date: Thu, 27 Jun 2024 14:30:28 +0800 Subject: [PATCH] Update nodeloc_vps_autotest_media.sh --- nodeloc_vps_autotest_media.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nodeloc_vps_autotest_media.sh b/nodeloc_vps_autotest_media.sh index b7cf4e2..a5a1389 100644 --- a/nodeloc_vps_autotest_media.sh +++ b/nodeloc_vps_autotest_media.sh @@ -133,7 +133,7 @@ show_welcome() { declare -a test_results # 去除流媒体板块ANSI转义码并截取需要的部分 -process_output() { +streaming_process_output() { local input="$1" echo "$input" | sed 's/\x1b\[[0-9;]*m//g' | awk '/项目地址/{f=1} f; /检测脚本当天运行次数/{f=0}' } @@ -165,7 +165,7 @@ run_all_tests() { format_results() { # 处理流媒体解锁结果 local processed_streaming_result - processed_streaming_result=$(process_output "$streaming_result") + processed_streaming_result=$(streaming_process_output "$streaming_result") result="[tabs] [tab=\"流媒体\"]