Commit 5002a9f
fix: wrap hook commands in bash -c for paths with spaces
Problem: Claude Code hooks fail when $CLAUDE_PROJECT_DIR contains
spaces (e.g., "Groove Jones Dropbox"). The shell splits the path
on spaces even when quoted in settings.json.
Solution: Wrap all commands using $CLAUDE_PROJECT_DIR in bash -c '...'
so bash handles variable expansion with proper quoting.
Changes:
- Wrapped 25 hooks using $CLAUDE_PROJECT_DIR with bash -c
- Preserved all timeout values
- Left $HOME hooks unchanged (no spaces in home paths)
Pattern applied:
Before: python3 "$CLAUDE_PROJECT_DIR/.claude/hooks/script.py"
After: bash -c 'python3 "$CLAUDE_PROJECT_DIR/.claude/hooks/script.py"'1 parent 35c45f7 commit 5002a9f
1 file changed
Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments