fix gpg sign loop
All checks were successful
the build was successful

This commit is contained in:
Paolo Asperti 2018-09-28 15:43:21 +02:00
parent fbb1f10f08
commit 1200ccac72

8
run.sh
View File

@ -44,11 +44,5 @@ EOF
# parse required files
for f in ${PLUGIN_FILES} ; do
echo -n "Checking: $f - "
S=$(rpm -K $f | grep '\:.*signatures.*OK$')
if [ "a$S" = "a" ] ; then
rpmsign --addsign $f 2>&1 >/dev/null && echo "SIGNED SUCCESSFULLY" || echo "SIGNING FAILED"
else
echo "ALREADY SIGNED"
fi
rpm -K $f | grep "\:.*signatures.*OK$" || rpmsign -v --addsign $f || exit 1
done