buildiso: Do not sign ISO if GPG key is not found

Signed-off-by: Vasiliy Stelmachenok <ventureo@cachyos.org>
This commit is contained in:
Vasiliy Stelmachenok authored and Peter Jung committed 2026-05-09 21:41:22 +02:00
1 parent a9eaed9aa3
commit 09b04b14c9
1 file changed
+5
+5
View File
@@ -93,6 +93,11 @@ sign_with_key() {
exit 1 exit 1
fi fi
if [ -z "$GPGKEY" ]; then
warning "Skipping signing due to lack of GPG key"
return 0
fi
msg2 "signing [%s] with key %s" "${1##*/}" "${GPGKEY}" msg2 "signing [%s] with key %s" "${1##*/}" "${GPGKEY}"
[[ -e "$1".sig ]] && rm "$1".sig [[ -e "$1".sig ]] && rm "$1".sig