From 2794fd97f07ee93659a4cc18b1c59addca727fa4 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Mon, 23 Nov 2026 16:00:16 -0500 Subject: [PATCH] fix(7733): shellcheck reads plugin_version as set for the hooks that source grimoire_defs.sh Co-Authored-By: Claude Opus 5.5 --- plugin/hooks/grimoire_defs.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugin/hooks/grimoire_defs.sh b/plugin/hooks/grimoire_defs.sh index 16d899e7..21ab3b06 100644 --- a/plugin/hooks/grimoire_defs.sh +++ b/plugin/hooks/grimoire_defs.sh @@ -871,7 +871,9 @@ grimoire_config() { # Sent as `X-Grimoire-Plugin` on every request. The server keeps it on each # rule line it delivers, and counts a line toward a rule's open rate only # when it is there: a plugin that sends it also reports every open, so a - # line without it is one whose opens were never going to be heard. + # line without it is one whose opens were never going to be heard. The hooks + # that source this file read it, which shellcheck cannot see from here. + # shellcheck disable=SC2034 plugin_version=$(sed -n 's/^ *"version": *"\([^"]*\)".*/\1/p' \ "$(dirname "${BASH_SOURCE[0]}")/../.claude-plugin/plugin.json" 2>/dev/null | head -n 1) [ -n "$url" ] && [ -n "$token" ]