mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-20 10:38:42 +01:00
16 lines
400 B
Bash
Executable File
16 lines
400 B
Bash
Executable File
#!/bin/sh
|
|
INPUT=$(</dev/stdin)
|
|
VALID=false
|
|
IFS=$'\n'
|
|
for LINE in $(echo "$INPUT" | gpg --trust-model always "$@" 2>/dev/null); do
|
|
case "$LINE" in "[GNUPG:] VALIDSIG"*)
|
|
while read KEY; do
|
|
case "$LINE" in "[GNUPG:] VALIDSIG $KEY "*) VALID=true;; esac
|
|
done < ./contrib/verify-commits/trusted-keys
|
|
esac
|
|
done
|
|
if ! $VALID; then
|
|
exit 1
|
|
fi
|
|
echo "$INPUT" | gpg --trust-model always "$@" 2>/dev/null
|