Skip to content

Commit

Permalink
fix: Fix windows executor
Browse files Browse the repository at this point in the history
Signed-off-by: Valentin Kiselev <mrexox@evilmartians.com>
  • Loading branch information
mrexox committed Oct 14, 2022
1 parent d19009f commit 590171c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/lefthook/runner/execute_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
type CommandExecutor struct{}

func (e CommandExecutor) Execute(opts ExecuteOptions) (*bytes.Buffer, error) {
command := exec.Command(args[0])
command := exec.Command(opts.args[0])
command.SysProcAttr = &syscall.SysProcAttr{
CmdLine: strings.Join(opts.args, " "),
}
Expand Down

0 comments on commit 590171c

Please sign in to comment.