mirror of
https://github.com/aler9/rtsp-simple-server
synced 2025-11-01 03:22:50 +08:00
on Windows, when using cmd.exe or a bat file as external command.
This commit is contained in:
@@ -11,13 +11,13 @@ import (
|
||||
"github.com/kballard/go-shellquote"
|
||||
)
|
||||
|
||||
func (e *Cmd) runInner() (int, bool) {
|
||||
cmdparts, err := shellquote.Split(e.cmdstr)
|
||||
func (e *Cmd) runOSSpecific() (int, bool) {
|
||||
cmdParts, err := shellquote.Split(e.cmdstr)
|
||||
if err != nil {
|
||||
return 0, true
|
||||
}
|
||||
|
||||
cmd := exec.Command(cmdparts[0], cmdparts[1:]...)
|
||||
cmd := exec.Command(cmdParts[0], cmdParts[1:]...)
|
||||
|
||||
cmd.Env = append([]string(nil), os.Environ()...)
|
||||
for key, val := range e.env {
|
||||
|
||||
Reference in New Issue
Block a user