From a7765c5079b3b3551cef659498d140ad5a04c114 Mon Sep 17 00:00:00 2001 From: Nils Stinnesbeck Date: Tue, 20 Oct 2026 22:32:30 +0200 Subject: [PATCH] release.sh: drop unused variable; run shellcheck in make test Co-Authored-By: Claude Sonnet 5.5 --- Makefile | 1 + scripts/release.sh | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6e829d5..8353731 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,7 @@ build: test: go vet ./... go test ./... + @if command -v shellcheck >/dev/null; then shellcheck scripts/*.sh dev/*.sh; else echo "shellcheck not installed, skipping shell script checks"; fi # Cross-compiled binaries and checksums in dist/. dist: diff --git a/scripts/release.sh b/scripts/release.sh index 3a18587..37d9024 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -87,7 +87,6 @@ echo "release: $repo on $base, $tag is free" [[ $mode == check ]] && exit 0 # --- release text from the changelog ------------------------------------------ -version=${tag#v} python3 - "$tag" "$tmp/release.json" <<'PY' || die "CHANGELOG.md has no section for $tag" import json, re, sys tag, out = sys.argv[1], sys.argv[2]