summaryrefslogtreecommitdiffstats
path: root/src/util/util_windows.go
blob: a660f39e2b712e2f91bf28eb7b9de684ae34410a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// +build windows

package util

import (
	"os"
	"os/exec"
)

// ExecCommand executes the given command with $SHELL
func ExecCommand(command string) *exec.Cmd {
	shell := os.Getenv("SHELL")
	if len(shell) == 0 {
		shell = "cmd"
	}
	return exec.Command(shell, "/c", command)
}