contrib/build: ignore missing signingkey in git config

Fixes: 64f8ec6099 ('rpm/build*.sh: trap failures')
This commit is contained in:
Íñigo Huguet
2025-02-28 14:33:18 +01:00
parent 4a8e672506
commit 90c403f4ef

View File

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