feat: 文件工具添加文本输出函数,调整逐行

This commit is contained in:
TsMask
2025-05-20 11:44:09 +08:00
parent f011fb5153
commit 72c688e178
7 changed files with 48 additions and 22 deletions

View File

@@ -178,6 +178,8 @@ func (r NeVersion) Operate(action string, neVersion model.NeVersion, preinput ma
if err != nil {
return "", err
}
// 将安装升级执行结果写入文件
file.WriterFileTXT(commandLine, fmt.Sprintf("/tmp/%s_%s.out", neVersion.NeType, action))
// ========= 完成阶段 =========
if strings.LastIndex(commandLine, okFlagStr) > 5 {