verify_signed_packages.sh 209 B

1234567891011121314151617
  1. #!/bin/bash
  2. _files=$*
  3. ALL_SIGNED=0
  4. for file in $_files; do
  5. if rpm -K "$file" | grep "pgp.*OK" -q; then
  6. ALL_SIGNED=1
  7. echo "$file" NOT SIGNED
  8. else
  9. echo "$file" OK
  10. fi
  11. done
  12. exit $ALL_SIGNED