From a87b355bb5c650adf6f541661fb1256bda5a6db7 Mon Sep 17 00:00:00 2001 From: minoplhy Date: Fri, 11 Apr 2025 15:28:02 +0700 Subject: [PATCH] 7-test-suite: cleanup ANSI escape code before saving --- 7-test-suite/vpsinfo.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/7-test-suite/vpsinfo.sh b/7-test-suite/vpsinfo.sh index a479478..fde5dae 100644 --- a/7-test-suite/vpsinfo.sh +++ b/7-test-suite/vpsinfo.sh @@ -17,9 +17,9 @@ DISK_TOTAL=$(df -h -t simfs -t ext2 -t ext3 -t ext4 -t btrfs -t xfs -t vfat -t n [[ -z "$CPU_AES" ]] || CPU_AES="yes" -curl -SL https://yabs.sh | bash -s -- -5 -6 > yabs.sh -curl -sL https://nws.sh | bash > nws.sh -curl -sL https://bench.monster | bash -s -- -all > bench.sh +curl -SL https://yabs.sh | bash -s -- -5 -6 | perl -pe 's/\e\[?.*?[@-~]//g' | perl -pe 's/.*\r(.*)/$1/' > yabs.txt +curl -sL https://nws.sh | bash | perl -pe 's/\e\[?.*?[@-~]//g' | perl -pe 's/.*\r(.*)/$1/' > nws.txt +curl -sL https://bench.monster | bash -s -- -all > bench.txt echo "{{< vps_info cpu=\"$CPU_INFO\"