# Prevent pushing BAD signature to remote
if grep -q 'BAD' <<< "$(git log --show-signature -n 1 --oneline)"; then
    cat <<\EOF
Error: A commit with BAD signature found.

Try re-committing this change:

  git commit --amend -m 'your commit msg'
EOF
    exit 1
fi
