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]