8902fea1ca
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2786 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
9 lines
306 B
Bash
Executable File
9 lines
306 B
Bash
Executable File
# 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
|