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
parent 5704e623e0
commit 5f5b541a3c

View file

@ -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"