diff options
author | EuAndreh <eu@euandre.org> | 2021-06-11 22:39:20 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-06-11 22:39:20 -0300 |
commit | 3f9bd994223f78b7ec4ab80820d593066f27aa56 (patch) | |
tree | d656f616bf96354bc786ad6f8b9f74cb92d8561e /aux/workflow/sign-tarballs.sh | |
parent | aux/workflow/public.sh: Mark as executable (diff) | |
download | package-repository-3f9bd994223f78b7ec4ab80820d593066f27aa56.tar.gz package-repository-3f9bd994223f78b7ec4ab80820d593066f27aa56.tar.xz |
Update files under aux/
Diffstat (limited to 'aux/workflow/sign-tarballs.sh')
-rwxr-xr-x | aux/workflow/sign-tarballs.sh | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/aux/workflow/sign-tarballs.sh b/aux/workflow/sign-tarballs.sh index b88ff33..8de6ac4 100755 --- a/aux/workflow/sign-tarballs.sh +++ b/aux/workflow/sign-tarballs.sh @@ -5,13 +5,13 @@ PROJECT="$1" 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" - fi + 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" + fi done |