Update nodeloc_vps_autotest_yabs.sh

This commit is contained in:
Jensfrank 2024-06-29 20:15:52 +08:00 committed by GitHub
parent a6dd6395eb
commit 879b7f28f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -105,8 +105,8 @@ run_and_capture() {
# 创建一个临时文件来存储完整输出
local temp_file=$(mktemp)
# 运行 YABS 测试,同时将输出显示在终端和保存到临时文件
wget -qO- yabs.sh | bash | tee "$temp_file"
# 运行 YABS 测试,使用 stdbuf 禁用缓冲,同时将输出显示在终端和保存到临时文件
wget -qO- yabs.sh | stdbuf -oL bash | tee "$temp_file"
# 读取完整结果,但排除最后一行("按回车键返回主菜单..."
sed '$d' "$temp_file"