fix(hooks): quote opt-in hook paths in setup docs

Unquoted ${CLAUDE_PROJECT_DIR} in SDD-CACHE and SIMPLIFY-IGNORE setup
examples breaks when the project path contains spaces, the same class
of failure fixed for SessionStart in #214.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
JagadishandCursor committed 2026-07-20 09:03:58 +05:30
1 parent 98967c45a4
commit bb68af5624
2 files changed
+5 -5

No files matched your search

+2 -2
View File
@@ -21,7 +21,7 @@ This hook caches fetched content on disk, but **revalidates with the origin serv
"hooks": [
{
"type": "command",
"command": "bash ${CLAUDE_PROJECT_DIR}/hooks/sdd-cache-pre.sh",
"command": "bash \"${CLAUDE_PROJECT_DIR}/hooks/sdd-cache-pre.sh\"",
"timeout": 10
}
]
@@ -33,7 +33,7 @@ This hook caches fetched content on disk, but **revalidates with the origin serv
"hooks": [
{
"type": "command",
"command": "bash ${CLAUDE_PROJECT_DIR}/hooks/sdd-cache-post.sh",
"command": "bash \"${CLAUDE_PROJECT_DIR}/hooks/sdd-cache-post.sh\"",
"async": true,
"timeout": 10
}
+3 -3
View File
@@ -24,18 +24,18 @@ result[3] = buf[3] ^ key[3];
"PreToolUse": [
{
"matcher": "Read",
"hooks": [{ "type": "command", "command": "bash ${CLAUDE_PROJECT_DIR}/hooks/simplify-ignore.sh" }]
"hooks": [{ "type": "command", "command": "bash \"${CLAUDE_PROJECT_DIR}/hooks/simplify-ignore.sh\"" }]
}
],
"PostToolUse": [
{
"matcher": "Edit|Write",
"hooks": [{ "type": "command", "command": "bash ${CLAUDE_PROJECT_DIR}/hooks/simplify-ignore.sh" }]
"hooks": [{ "type": "command", "command": "bash \"${CLAUDE_PROJECT_DIR}/hooks/simplify-ignore.sh\"" }]
}
],
"Stop": [
{
"hooks": [{ "type": "command", "command": "bash ${CLAUDE_PROJECT_DIR}/hooks/simplify-ignore.sh" }]
"hooks": [{ "type": "command", "command": "bash \"${CLAUDE_PROJECT_DIR}/hooks/simplify-ignore.sh\"" }]
}
]
}