chore: 发布版本 2.2505.1

This commit is contained in:
TsMask
2025-05-09 20:04:32 +08:00
parent 448c705f86
commit ca3f1b7738
3 changed files with 23 additions and 2 deletions

View File

@@ -648,7 +648,18 @@ func (r NeVersion) operateRun(sshClient *ssh.ConnSSH, preinput map[string]string
}
// 命令终止符后继续执行命令
suffix := strings.HasSuffix(outputStr, "~]# ") || strings.LastIndex(outputStr, "~# ") != -1 || strings.HasSuffix(outputStr, "~$ ")
// "~]# ":麒麟, "~]$ ":欧拉, "~# ":NXP, "~$ ":Ubuntu
suffixStr := []string{"~]# ", "~]$ ", "~# ", "~$ "}
suffix := false
for _, v := range suffixStr {
if strings.HasSuffix(outputStr, v) {
suffix = true
break
}
}
if !suffix {
suffix = strings.LastIndex(outputStr, "~# ") != -1
}
if len(cmdStrArr) > 0 && suffix {
if firstRead {
firstRead = false