verify_signed_packages.sh 220 B

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