Skip to content

Commit

Permalink
Update command.go
Browse files Browse the repository at this point in the history
  • Loading branch information
sadihakan committed Aug 10, 2022
1 parent cdc1997 commit 0c85377
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions internal/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,7 @@ func buildShellCommand(command string, args []string) *exec.Cmd {
tmp := make([]string, 0)
switch runtime.GOOS {
case "windows":
arg = append(arg, string(os.PathSeparator)+"C")
tmp = append(tmp, command)
tmp = append(tmp, args...)
c := strings.Join(tmp, " ")
arg = append(arg, c)
return homeDirCommand(exec.Command("cmd", arg...))
return homeDirCommand(exec.Command(command, args...))
default:
arg = append(arg, "-c")
tmp = append(tmp, command)
Expand Down

0 comments on commit 0c85377

Please sign in to comment.