File: decrypt.test

package info (click to toggle)
gnupg1 1.4.23-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 20,864 kB
  • sloc: ansic: 127,978; sh: 7,756; asm: 4,610; makefile: 1,112; yacc: 291; perl: 196; pascal: 72; sed: 16
file content (10 lines) | stat: -rwxr-xr-x 228 bytes parent folder | download | duplicates (16)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

. $srcdir/defs.inc || exit 3

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