Skip to content

Commit 304b9b8

Browse files
committed
show message when jq is not installed
1 parent 71c64d1 commit 304b9b8

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

plugins/warp/scripts/on-session-start.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22
# Hook script for Claude Code SessionStart event
33
# Shows welcome message, Warp detection status, and emits plugin version
44

5+
if ! command -v jq &>/dev/null; then
6+
cat << 'EOF'
7+
{
8+
"systemMessage": "⚠️ Warp notifications require jq — install it with: brew install jq"
9+
}
10+
EOF
11+
exit 0
12+
fi
13+
514
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
615
source "$SCRIPT_DIR/build-payload.sh"
716

0 commit comments

Comments
 (0)