rm existing .sig file to avoid corrupted signature

https://forum.manjaro.org/t/troubleshooting-signature-errors-with-boxit/26178/
This commit is contained in:
Bernhard Landauer 2017-06-24 03:09:39 +02:00 committed by Philip
parent 965de2f5fc
commit 4b76f7fa83

View file

@ -26,4 +26,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"