Skip to content

Commit

Permalink
do we have to add the .exe manually?
Browse files Browse the repository at this point in the history
  • Loading branch information
moskyb committed May 18, 2023
1 parent d4a1340 commit 2b791bc
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions bootstrap/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -359,12 +359,6 @@ func (b *Bootstrap) runUnwrappedHook(ctx context.Context, hookName string, hookC
environ.Set("BUILDKITE_HOOK_PATH", hookCfg.Path)
environ.Set("BUILDKITE_HOOK_TRIGGERED_FROM", hookCfg.Scope)

if runtime.GOOS == "windows" {
if !strings.HasSuffix(hookCfg.Path, ".exe") {
hookCfg.Path += ".exe"
}
}

return b.shell.RunWithEnv(ctx, environ, hookCfg.Path)
}

Expand Down

0 comments on commit 2b791bc

Please sign in to comment.