diff options
author | EuAndreh <eu@euandre.org> | 2021-08-15 17:31:16 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-08-15 17:31:16 -0300 |
commit | 651bb5b3fb3a9b36599e1891efb22efb4bf34c3f (patch) | |
tree | efbe3f44dccff3ed8eea651fed57c4ca937c03e9 /aux/workflow/sign-tarballs.sh | |
parent | _articles/2020-11-07-diy-an-offline-bug-tracker-with-text-files-git-and-email... (diff) | |
download | euandre.org-651bb5b3fb3a9b36599e1891efb22efb4bf34c3f.tar.gz euandre.org-651bb5b3fb3a9b36599e1891efb22efb4bf34c3f.tar.xz |
aux/: Update
Diffstat (limited to '')
-rwxr-xr-x | aux/workflow/sign-tarballs.sh | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/aux/workflow/sign-tarballs.sh b/aux/workflow/sign-tarballs.sh index 168d38d..3ab2bb8 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.gz 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.gz add -f -C "$( - git archive --format tar.gz --prefix "$PROJECT-${tag#v}/" "$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.gz add -C "$( + git archive --format tar.gz --prefix "$PROJECT-$tag/" "$tag" | + gpg --output - --armor --detach-sign | + git hash-object -w --stdin + )" "$tag" done |