Add shell in command line

This commit is contained in:
Joe Lim committed 2023-06-18 00:35:56 +10:00
1 parent 3b398d4aec
commit 3da2477937
1 file changed
+1 -1
+1 -1
View File
@@ -106,7 +106,7 @@ func shellCommand(s string, args []string) *exec.Cmd {
for _, arg := range args {
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.SysProcAttr = &windows.SysProcAttr{CmdLine: cmdline}