Fix command execution in hooks.json

This commit is contained in:
Layyes authored and GitHub committed 2026-06-13 12:30:34 +08:00
1 parent 212e7a1d9c
commit b7833777b1
1 file changed
+1 -2
+1 -2
View File
@@ -5,8 +5,7 @@
"hooks": [
{
"type": "command",
"command": "SCRIPT=\"${CLAUDE_PLUGIN_ROOT}/hooks/session-start.sh\"; [ -f \"$SCRIPT\" ] || SCRIPT=\"${CLAUDE_PROJECT_DIR}/.claude/hooks/session-start.sh\"; [ -f \"$SCRIPT\" ]
&& bash \"$SCRIPT\" || true"
"command": "SCRIPT=\"${CLAUDE_PLUGIN_ROOT}/hooks/session-start.sh\"; [ -f \"$SCRIPT\" ] || SCRIPT=\"${CLAUDE_PROJECT_DIR}/.claude/hooks/session-start.sh\"; [ -f \"$SCRIPT\" ]&& bash \"$SCRIPT\" || true"
}
]
}