You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

gpg.sh 400B

123456789101112131415
  1. #!/bin/sh
  2. INPUT=$(</dev/stdin)
  3. VALID=false
  4. IFS=$'\n'
  5. for LINE in $(echo "$INPUT" | gpg --trust-model always "$@" 2>/dev/null); do
  6. case "$LINE" in "[GNUPG:] VALIDSIG"*)
  7. while read KEY; do
  8. case "$LINE" in "[GNUPG:] VALIDSIG $KEY "*) VALID=true;; esac
  9. done < ./contrib/verify-commits/trusted-keys
  10. esac
  11. done
  12. if ! $VALID; then
  13. exit 1
  14. fi
  15. echo "$INPUT" | gpg --trust-model always "$@" 2>/dev/null