contrib/build: ignore missing signingkey in git config
Fixes: 64f8ec6099
('rpm/build*.sh: trap failures')
This commit is contained in:
@@ -237,7 +237,7 @@ rpmbuild --define "_topdir $TEMP" $RPM_BUILD_OPTION "$TEMPSPEC" $NM_RPMBUILD_ARG
|
|||||||
LS_EXTRA=()
|
LS_EXTRA=()
|
||||||
|
|
||||||
if [ "$SIGN_SOURCE" = 1 ]; then
|
if [ "$SIGN_SOURCE" = 1 ]; then
|
||||||
SIGNKEY="$(git config --get user.signingkey)"
|
SIGNKEY="$(git config --get user.signingkey || :)"
|
||||||
if [ "$SIGNKEY" != "" ]; then
|
if [ "$SIGNKEY" != "" ]; then
|
||||||
SIGNKEY="--local-user $(printf '%q' "$SIGNKEY")"
|
SIGNKEY="--local-user $(printf '%q' "$SIGNKEY")"
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user