fix: 网元激活码多行行内容提取

This commit is contained in:
TsMask
2025-05-29 21:25:42 +08:00
parent d9bb31a523
commit 72ffd848d7
3 changed files with 5 additions and 5 deletions

View File

@@ -658,7 +658,7 @@ func (r NeVersion) operateRun(sshClient *ssh.ConnSSH, preinput map[string]string
}
}
if !suffix {
suffix = strings.LastIndex(outputStr, "~# ") != -1
suffix = strings.LastIndex(outputStr, "# ") != -1 // 特殊内容中的终端终止符
}
if len(cmdStrArr) > 0 && suffix {
if firstRead {