aboutsummaryrefslogtreecommitdiffstats
path: root/checks/decrypt.test
blob: edd32a24a8cec8ede2c89c8784280aef4f2f38d6 (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