diff --git a/os_windows.go b/os_windows.go index 8e3740e3..534e9bb2 100644 --- a/os_windows.go +++ b/os_windows.go @@ -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}