Skip to content

An agentic skills framework & software development methodology that works.

fix: quote CLAUDE_PLUGIN_ROOT for spaces, use POSIX-safe path resolution

Jesse Vincent31bbbe2dbb6e
diff --git a/hooks/hooks.json b/hooks/hooks.json
index 5679ac522..2dacc8a32 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
}
]
diff --git a/hooks/run-hook.cmd b/hooks/run-hook.cmd
index f65134d7a..ceec3a732 100755
--- a/hooks/run-hook.cmd
+++ b/hooks/run-hook.cmd
@@ -40,7 +40,7 @@ exit /b 0
CMDBLOCK
# Unix: run the named script directly
-SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]:-$0}")" && pwd)"
+SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
SCRIPT_NAME="$1"
shift
exec bash "${SCRIPT_DIR}/${SCRIPT_NAME}" "$@"