passgpg2 (321B)
1 #!/bin/sh 2 # gpg2 is so stupid, use gpg1 if you have the chance 3 # why do I need --batch and --pinentry-mode loopback just so --passphrase works? wtf? 4 5 file=/tmp/$$.passwd 6 touch $file 7 chmod 0600 $file 8 dpass gpg3key > $file 9 gpg2 -q --armour --batch --pinentry-mode loopback --passphrase-file $file "$@" 2>/dev/null 10 rm $file