From 3da2477937e93d4f2f5d6b6e63706c5a3a1fa4cb Mon Sep 17 00:00:00 2001 From: Joe Lim <50560759+joelim-work@users.noreply.github.com> Date: Sun, 18 Jun 2023 00:35:56 +1000 Subject: [PATCH] Add shell in command line --- os_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}