- version 3.6
Check those constraints:
$this->anything()
while [ 1 ]; do | |
echo ">> Enter an email address:" | |
read EMAIL | |
gpg --keyserver pgp.mit.edu --search-keys $EMAIL | |
FINGERPRINT=`gpg --fingerprint $EMAIL` | |
[[ $FINGERPRINT =~ 2048[DR]/([0-9A-F]{8}) ]]; | |
KEY_ID=${BASH_REMATCH[1]} | |
gpg --sign-key $EMAIL | |
echo ">> Going to sign key $KEY_ID" | |
gpg --armor --export $KEY_ID > $KEY_ID.asc |