diff options
author | Björn Mattsson <bjorn@sunet.se> | 2023-10-19 16:05:58 +0200 |
---|---|---|
committer | Björn Mattsson <bjorn@sunet.se> | 2023-10-19 16:05:58 +0200 |
commit | af3487b9c4a9b630d88b55c2bcc4bedf257cab4a (patch) | |
tree | 2b6988b2c2cb434e8a14cad14430c0537a2d0c8f /scripts/verify-tag |
Added files from Wiki + base files for repo
Diffstat (limited to 'scripts/verify-tag')
-rwxr-xr-x | scripts/verify-tag | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/verify-tag b/scripts/verify-tag new file mode 100755 index 0000000..ddc3ff3 --- /dev/null +++ b/scripts/verify-tag @@ -0,0 +1,14 @@ +#!/bin/bash + +export GNUPGHOME=/etc/metadata/gnupg +mkdir -p $GNUPGHOME +export GPG=gpg + +git config --global gpg.program gpg + +tag=$(git tag -l "md-[0-9]*" | sort | tail -1) +if [ -z "$tag" ]; then + echo "no matching tag found" + exit 1 +fi +git checkout $tag && git tag -v $tag |