Skip to content

Commit

Permalink
Add stdout to windows in parallel mode
Browse files Browse the repository at this point in the history
  • Loading branch information
A.A.Abroskin committed Jun 17, 2019
1 parent c4d7d52 commit 8ff0fdd
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 4 deletions.
Binary file modified .npm/bin/lefthook-linux
Binary file not shown.
Binary file modified .npm/bin/lefthook-mac
Binary file not shown.
Binary file modified .npm/bin/lefthook-win.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion .npm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@arkweid/lefthook",
"version": "0.5.2",
"version": "0.5.3",
"description": "Simple git hooks manager",
"main": "index.js",
"bin": {
Expand Down
3 changes: 1 addition & 2 deletions cmd/run.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// +build linux darwin
// +build 386
// +build !windows

package cmd

Expand Down
4 changes: 4 additions & 0 deletions cmd/run_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ func executeCommand(hooksGroup, commandName string, wg *sync.WaitGroup) {

runnerArg := strings.Split(runner, " ")
command := exec.Command(runnerArg[0], runnerArg[1:]...)
command.Stdout = os.Stdout
command.Stderr = os.Stderr
command.Stdin = os.Stdin

err := command.Start()
Expand Down Expand Up @@ -216,6 +218,8 @@ func executeScript(hooksGroup, source string, executable os.FileInfo, wg *sync.W

command = exec.Command(runnerArg[0], runnerArg[1:]...)
}
command.Stdout = os.Stdout
command.Stderr = os.Stderr
command.Stdin = os.Stdin

err := command.Start()
Expand Down
2 changes: 1 addition & 1 deletion cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
)

const (
version string = "0.5.2"
version string = "0.5.3"
)

// versionCmd represents the version command
Expand Down

0 comments on commit 8ff0fdd

Please sign in to comment.