From 5f5b541a3c4375ba1e4c3d2d9ab2c16a8e835984 Mon Sep 17 00:00:00 2001 From: Bernhard Landauer Date: Sat, 24 Jun 2017 03:09:39 +0200 Subject: [PATCH] rm existing .sig file to avoid corrupted signature https://forum.manjaro.org/t/troubleshooting-signature-errors-with-boxit/26178/ --- bin/signfile.in | 1 + 1 file changed, 1 insertion(+) 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"