mirror of
				https://github.com/everett7623/nodeloc_vps_test.git
				synced 2025-11-04 08:27:51 +00:00 
			
		
		
		
	Update nodeloc_vps_autotest_yabs.sh
This commit is contained in:
		
							parent
							
								
									a6dd6395eb
								
							
						
					
					
						commit
						879b7f28f7
					
				@ -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"
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user