diff --git a/bin/signfile.in b/bin/signfile.in index f11142d..b664add 100644 --- a/bin/signfile.in +++ b/bin/signfile.in @@ -28,4 +28,5 @@ if [ ! -e "$1" ]; then fi msg2 "Signing [%s] with key %s" "${1##*/}" "${GPGKEY}..." +[[ -e "$1".sig ]] && rm "$1".sig gpg --detach-sign --use-agent -u "${GPGKEY}" "$1"