run directly external commands on unix, without using the shell

This commit is contained in:
aler9 2020-09-19 17:22:03 +02:00
parent 4750cc5a48
commit 5517a2b6a0

View file

@ -144,7 +144,7 @@ func startExternalCommand(cmdstr string, pathName string) (*exec.Cmd, error) {
cmd = exec.Command(args[0], args[1:]...)
} else {
cmd = exec.Command("/bin/sh", "-c", cmdstr)
cmd = exec.Command("/bin/sh", "-c", "exec "+cmdstr)
}
// variables are available through environment variables