fix: 网元安装命令输出后缀检查逻辑

This commit is contained in:
TsMask
2025-05-29 16:23:31 +08:00
parent 4fdf2939ad
commit 32616ed2be

View File

@@ -661,7 +661,7 @@ func (r NeVersion) operateRun(preinput map[string]string, cmdStrArr []string, ne
}
}
if !suffix {
suffix = strings.LastIndex(outputStr, "~# ") != -1
suffix = strings.LastIndex(outputStr, "# ") != -1
}
if len(cmdStrArr) > 0 && suffix {
if firstRead {