Update IDF for download verification
[tails.git] / bin / check-udfs-signature
blob08021b05ae759361ea5924fa0b39ce4312deeac9
1 #!/bin/bash
3 set -eu
5 error=false
6 while read -r upgradesYml; do
7 if ! [ -f "${upgradesYml}.pgp" ]; then
8 error=true
9 echo "${upgradesYml}.pgp missing" >&2
11 done < <(find "wiki/src/upgrade/" \
12 -type f -name upgrades.yml )
14 if $error; then
15 exit 1
18 while read -r upgradesYml; do
19 if ! gpg --quiet --batch --verify "${upgradesYml}.pgp" "${upgradesYml}" &> /dev/null; then
20 error=true
21 echo "${upgradesYml}.pgp invalid signature" >&2
22 exit 1
24 done < <(find wiki/src/upgrade/ \
25 -type f -name upgrades.yml )