diff options
| author | Jesse Vincent <jesse@fsck.com> | 2026-02-21 10:40:30 -0800 |
|---|---|---|
| committer | Jesse Vincent <jesse@fsck.com> | 2026-02-21 10:40:30 -0800 |
| commit | 31bbbe2dbb6ea718c410f1d858c7fdffb12ea678 (patch) | |
| tree | e49b0d2d32da44dcf55555093060f0b0f1e61aa8 /hooks/hooks.json | |
| parent | 5fbefbd0a96074f871ec465f0c54f913c1e4919f (diff) | |
fix: quote CLAUDE_PLUGIN_ROOT for spaces, use POSIX-safe path resolution
- Quote ${CLAUDE_PLUGIN_ROOT} in hooks.json to handle paths with spaces
(e.g. "C:\Users\Robert Zimmermann\...")
- Replace bash-only ${BASH_SOURCE[0]:-$0} with POSIX-safe $0 in
run-hook.cmd so the Unix path doesn't break on dash (/bin/sh)
Addresses: #518 (spaces in path), Ubuntu/Debian compatibility
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'hooks/hooks.json')
| -rw-r--r-- | hooks/hooks.json | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hooks/hooks.json b/hooks/hooks.json index 5679ac5..2dacc8a 100644 --- a/hooks/hooks.json +++ b/hooks/hooks.json @@ -6,7 +6,7 @@ "hooks": [ { "type": "command", - "command": "${CLAUDE_PLUGIN_ROOT}/hooks/run-hook.cmd session-start", + "command": "'${CLAUDE_PLUGIN_ROOT}/hooks/run-hook.cmd' session-start", "async": false } ] |
