grafana/scripts/build/verify_signed_packages.sh
2019-07-23 16:47:50 +03:00

17 lines
209 B
Bash
Executable File

#!/bin/bash
_files=$*
ALL_SIGNED=0
for file in $_files; do
if rpm -K "$file" | grep "pgp.*OK" -q ; then
echo "$file" OK
else
ALL_SIGNED=1
echo "$file" NOT SIGNED
fi
done
exit $ALL_SIGNED