fix: 更新版本操作结果文件输出路径

This commit is contained in:
TsMask
2025-05-21 15:58:02 +08:00
parent fe107ea3fa
commit 08bcfe8a22

View File

@@ -178,8 +178,6 @@ 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 {
@@ -682,7 +680,8 @@ func (r NeVersion) operateRun(sshClient *ssh.ConnSSH, preinput map[string]string
}()
// 等待写入协程完成
<-done
// 将安装升级执行结果写入文件
file.WriterFileTXT(commandLineText, fmt.Sprintf("/tmp/operate_run_%s.out", neType))
return commandLineText, nil
}