This commit is contained in:
lzh
2025-09-05 13:11:10 +08:00
parent 6b5231d169
commit d342a5bae9

View File

@@ -6,6 +6,7 @@ import (
"os"
"strings"
"github.com/google/shlex"
"github.com/lzh-1625/go_process_manager/config"
"github.com/lzh-1625/go_process_manager/internal/app/eum"
"github.com/lzh-1625/go_process_manager/internal/app/model"
@@ -141,7 +142,7 @@ func (p *ProcessPty) doOnInit() {
func NewProcessPty(pconfig model.Process) *ProcessBase {
p := ProcessBase{
Name: pconfig.Name,
StartCommand: strings.Split(pconfig.Cmd, " "),
StartCommand: utils.UnwarpIgnore(shlex.Split(pconfig.Cmd)),
WorkDir: pconfig.Cwd,
}
p.Process = &ProcessPty{ProcessBase: &p}