Skip to content

Commit ac829b2

Browse files
copeusclaude
andcommitted
fix(hooks): drop the second unused loop variable shellcheck flags in the version-floor probe
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
1 parent eb3eb27 commit ac829b2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

hooks/session-banner.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ CV_VERSION_FLOOR="${CV_VERSION_FLOOR:-2.1.219}"
6060
# lower than 2.1.219, which a lexical compare gets backwards. No `sort -V` — BSD sort
6161
# on macOS did not always carry it, and a fallback ladder is more code than this.
6262
_semver_lt() {
63-
local l="$1" r="$2" lp rp i
63+
local l="$1" r="$2" lp rp
6464
for _ in 1 2 3; do
6565
lp="${l%%.*}"; rp="${r%%.*}"
6666
case "$lp" in ''|*[!0-9]*) return 1 ;; esac

0 commit comments

Comments
 (0)