aboutsummaryrefslogtreecommitdiff
path: root/aux/workflow/sign-tarballs.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-06-11 22:39:20 -0300
committerEuAndreh <eu@euandre.org>2021-06-11 22:39:20 -0300
commit3f9bd994223f78b7ec4ab80820d593066f27aa56 (patch)
treed656f616bf96354bc786ad6f8b9f74cb92d8561e /aux/workflow/sign-tarballs.sh
parentaux/workflow/public.sh: Mark as executable (diff)
downloadpackage-repository-3f9bd994223f78b7ec4ab80820d593066f27aa56.tar.gz
package-repository-3f9bd994223f78b7ec4ab80820d593066f27aa56.tar.xz
Update files under aux/
Diffstat (limited to '')
-rwxr-xr-xaux/workflow/sign-tarballs.sh18
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