From 1487484be761ab670fb07332304eac145531ceae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=8D=C3=B1igo=20Huguet?= Date: Fri, 28 Feb 2025 13:39:23 +0100 Subject: [PATCH] rpm/build: fix failure if gpg key not configured on git Fixes: 64f8ec6099a4 ('rpm/build*.sh: trap failures') --- contrib/fedora/rpm/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/fedora/rpm/build.sh b/contrib/fedora/rpm/build.sh index f46b9ba56e..db3685f2f2 100755 --- a/contrib/fedora/rpm/build.sh +++ b/contrib/fedora/rpm/build.sh @@ -237,7 +237,7 @@ rpmbuild --define "_topdir $TEMP" $RPM_BUILD_OPTION "$TEMPSPEC" $NM_RPMBUILD_ARG LS_EXTRA=() if [ "$SIGN_SOURCE" = 1 ]; then - SIGNKEY="$(git config --get user.signingkey)" + SIGNKEY="$(git config --get user.signingkey || :)" if [ "$SIGNKEY" != "" ]; then SIGNKEY="--local-user $(printf '%q' "$SIGNKEY")" fi