#!/bin/bash export GNUPGHOME=/etc/metadata/gnupg mkdir -p $GNUPGHOME export GPG=gpg2 git config --global gpg.program gpg2 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