aboutsummaryrefslogtreecommitdiff
path: root/aux/workflow/sign-tarballs.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-07-27 11:31:02 -0300
committerEuAndreh <eu@euandre.org>2021-07-27 11:58:44 -0300
commit9e84b309cd0807ff029660d2f42a2397334efb2b (patch)
treed10f193190726891ff739ecb6655359166947bb5 /aux/workflow/sign-tarballs.sh
parentTODOs.md: Add #task-1f103822-c865-254c-f6b6-4968f2fb473e (diff)
downloadgit-permalink-9e84b309cd0807ff029660d2f42a2397334efb2b.tar.gz
git-permalink-9e84b309cd0807ff029660d2f42a2397334efb2b.tar.xz
aux/: Stick to 80 columns
Diffstat (limited to 'aux/workflow/sign-tarballs.sh')
-rwxr-xr-xaux/workflow/sign-tarballs.sh15
1 files changed, 8 insertions, 7 deletions
diff --git a/aux/workflow/sign-tarballs.sh b/aux/workflow/sign-tarballs.sh
index 3775e28..295619c 100755
--- a/aux/workflow/sign-tarballs.sh
+++ b/aux/workflow/sign-tarballs.sh
@@ -26,12 +26,13 @@ assert_arg "${PROJECT:-}" '-n PROJECT'
SIGNATURES="$(git notes --ref=refs/notes/signatures/tar.xz list | cut -d\ -f2)"
for tag in $(git tag); do
COMMIT="$(git rev-list -n1 "$tag")"
- if ! echo "$SIGNATURES" | grep -qF "$COMMIT"; then
- echo "Adding missing signature to $tag" >&2
- git notes --ref=refs/notes/signatures/tar.xz add -C "$(
- git archive --format tar.xz --prefix "$PROJECT-$tag/" "$tag" |
- gpg --output - --armor --detach-sign |
- git hash-object -w --stdin
- )" "$tag"
+ if echo "$SIGNATURES" | grep -qF "$COMMIT"; then
+ continue
fi
+ echo "Adding missing signature to $tag" >&2
+ git notes --ref=refs/notes/signatures/tar.xz add -C "$(
+ git archive --format tar.xz --prefix "$PROJECT-$tag/" "$tag" |
+ gpg --output - --armor --detach-sign |
+ git hash-object -w --stdin
+ )" "$tag"
done