aboutsummaryrefslogtreecommitdiffstats
path: root/checks/decrypt.test
blob: e45a0ad6fa072454fd24b4a34be61b0161984e21 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

. defs.inc || exit 3

#info Checking decryption of supplied files
for i in $plain_files ; do
    echo "$usrpass1" | run_gpg --passphrase-fd 0 -o y --yes $i.asc
    cmp $i y || error "$i: mismatch"
done