Skip to content

Commit cf63216

Browse files
committed
chore(claude): fix PostToolUse hook structure in settings.json
1 parent 0d4faac commit cf63216

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.claude/settings.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@
55
"PostToolUse": [
66
{
77
"matcher": "Edit|Write",
8-
"command": "file=\"$CLAUDE_FILE_PATH\"; if [ -n \"$file\" ] && echo \"$file\" | grep -q '\\.sh$'; then shellcheck -x \"$file\" 2>&1 | head -20; fi"
8+
"hooks": [
9+
{
10+
"type": "command",
11+
"command": "file=\"$CLAUDE_FILE_PATH\"; if [ -n \"$file\" ] && echo \"$file\" | grep -q '\\.sh$'; then shellcheck -x \"$file\" 2>&1 | head -20; fi"
12+
}
13+
]
914
}
1015
]
1116
}

0 commit comments

Comments
 (0)