fix: SessionStart hook fails on Linux/macOS (@echo: command not found) - #61
Merged
Conversation
hooks.json invoked run-hook.cmd via bash, which fails on Linux/macOS with "@echo: command not found" since it's a Windows batch file. A working bash equivalent (hooks/session-start) already existed unused; wire hooks.json to it instead.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
hooks/hooks.jsonrunsrun-hook.cmdthrough bash for the SessionStart event, but that's a Windows batch script. On Linux/macOS this fails with@echo: command not foundsince bash reads@echo offliterally.hooks/session-start, already exists in the same directory but is unused. Pointhooks.jsonat it instead.Test plan
run-hook.cmdexecuted via bash →@echo: command not found)hooks/session-startreadsskills/zio-knowledge/SKILL.mdcorrectly when invoked directly