Skip to content

fix: add explicit interpreter to hook commands for Windows#2

Merged
psklarkins merged 1 commit intomainfrom
amplifier-claude-v2
Feb 6, 2026
Merged

fix: add explicit interpreter to hook commands for Windows#2
psklarkins merged 1 commit intomainfrom
amplifier-claude-v2

Conversation

@psklarkins
Copy link
Owner

Summary

  • Prefix all hook commands with python or bash so they execute correctly on Windows Server
  • Without this, Windows tries to run .py/.sh files as .cmd and fails

Test plan

  • Stop hook no longer errors on session end
  • All 7 hooks execute without "not recognized as command" errors

🤖 Generated with Claude Code

On Windows, .py and .sh files can't be executed directly as commands.
Prefix all hook commands with 'python' or 'bash' so they work on
Windows Server without .cmd wrapper scripts.

🤖 Generated with [Amplifier](https://github.com/microsoft/amplifier)

Co-Authored-By: Amplifier <240397093+microsoft-amplifier@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant