mirror of
https://github.com/oneclickvirt/ecs.git
synced 2025-10-05 07:17:01 +08:00
update
This commit is contained in:
@@ -139,8 +139,7 @@ func CaptureOutput(f func()) string {
|
||||
<-done
|
||||
<-done
|
||||
// 返回捕获的输出字符串
|
||||
// stderrBuf.String()
|
||||
return stdoutBuf.String()
|
||||
return stdoutBuf.String() + stderrBuf.String()
|
||||
}
|
||||
|
||||
// PrintAndCapture 捕获函数输出的同时打印内容
|
||||
|
Reference in New Issue
Block a user