aboutsummaryrefslogtreecommitdiff
path: root/aux/workflow/sign-tarballs.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-06-11 23:55:44 -0300
committerEuAndreh <eu@euandre.org>2021-06-11 23:55:44 -0300
commit2be10d5b2df987131497c1d9fd7f93df4c6d827e (patch)
tree09c50d69f942c1385dcd459690f5a8849793ee31 /aux/workflow/sign-tarballs.sh
parentTODOs.md: Add #task-39e71afe-4ac9-4c3d-97e4-9ac41f826089 (diff)
downloadgistatic-2be10d5b2df987131497c1d9fd7f93df4c6d827e.tar.gz
gistatic-2be10d5b2df987131497c1d9fd7f93df4c6d827e.tar.xz
aux/: Update files
Diffstat (limited to 'aux/workflow/sign-tarballs.sh')
-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