Merge branch 'stable' into 'devel'
[tails.git] / bin / check-udfs-signature
blob74c87c9ff79a7b6d52c2e5292a9c1edfef549157
1 #!/bin/bash
3 set -eu
5 UDFS_DIR=wiki/src/upgrade/v2/
7 error=false
8 while read -r upgradesYml; do
9 if ! [ -f "${upgradesYml}.pgp" ]; then
10 error=true
11 echo "${upgradesYml}.pgp missing" >&2
13 done < <(find "$UDFS_DIR" -type f -name upgrades.yml)
15 if $error; then
16 exit 1
19 while read -r upgradesYml; do
20 if ! sqop verify "${upgradesYml}.pgp" wiki/src/tails-signing.key \
21 <"${upgradesYml}" &>/dev/null; then
22 error=true
23 echo "${upgradesYml}.pgp invalid signature" >&2
24 exit 1
26 done < <(find "$UDFS_DIR" -type f -name upgrades.yml)