Add shell in command line
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -106,7 +106,7 @@ func shellCommand(s string, args []string) *exec.Cmd {
|
|||||||
for _, arg := range args {
|
for _, arg := range args {
|
||||||
fmt.Fprintf(&builder, ` "%s"`, arg)
|
fmt.Fprintf(&builder, ` "%s"`, arg)
|
||||||
}
|
}
|
||||||
cmdline := fmt.Sprintf(`%s %s "%s"`, gOpts.shellopts, gOpts.shellflag, builder.String())
|
cmdline := fmt.Sprintf(`%s %s %s "%s"`, gOpts.shell, gOpts.shellopts, gOpts.shellflag, builder.String())
|
||||||
|
|
||||||
cmd := exec.Command(gOpts.shell)
|
cmd := exec.Command(gOpts.shell)
|
||||||
cmd.SysProcAttr = &windows.SysProcAttr{CmdLine: cmdline}
|
cmd.SysProcAttr = &windows.SysProcAttr{CmdLine: cmdline}
|
||||||
|
|||||||
Reference in new issue
Block a user