File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -101,6 +101,12 @@ done
101101
102102# Ensure we sign the Yum repo meta-data
103103if [[ " $DISABLE_SIGNING " != " true" ]]; then
104- # We use this form of find to fail on error
105- find " $BASE_PATH " -name repomd.xml -exec gpg --detach-sign --batch --armor --yes -u " $GPG_KEY " {} +
104+ # We use this form to fail on error during the find, otherwise -exec will succeed or just do one file with +
105+ while IFS= read -r -d ' ' REPO_METADATA_FILE
106+ do
107+ echo " Signing $REPO_METADATA_FILE "
108+ gpg --detach-sign --batch --armor --yes -u " $GPG_KEY " " $REPO_METADATA_FILE "
109+ done < <( find " $BASE_PATH " -name repomd.xml -print0)
110+ # Debug ouput for checking
111+ find " $BASE_PATH " -name " repomd.xml*" -exec ls -l {} \;
106112fi
You can’t perform that action at this time.
0 commit comments