From 5517a2b6a0c9a539344c7a3f3bb7560cd0567feb Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Sat, 19 Sep 2020 17:22:03 +0200 Subject: [PATCH] run directly external commands on unix, without using the shell --- utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.go b/utils.go index 266fa364..ca571dd5 100644 --- a/utils.go +++ b/utils.go @@ -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