2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-21 19:22:05 +00:00
xcat-core/build-utils/unsignedrpms.sh
2024-05-07 16:31:30 +02:00

10 lines
316 B
Bash
Executable File

#!/bin/sh
# Check if the given rpm is not signed, and display its file name if not signed.
# This would normally be run from find, e.g.: find . -type f -name '*.rpm' -exec ~/unsignedrpms.sh {} \;
count=`rpm -qip $1 2>/dev/null | grep -c 'DSA/SHA1'`
#echo "count=$count"
if [ $count -eq 0 ]; then
echo $1
fi