blob: c99f06b4b08e82bc302a90bde76de1c5c1a86207 (
plain)
1
2
3
4
5
6
7
|
#!/bin/bash
KEY="`gpg --homedir <%= basedir %>/.gnupg --with-colon --list-secret-keys | cut -d : -f 5 | head -n 1`"
if [ ! -z "$KEY" ]; then
gpg --homedir <%= basedir %>/.gnupg --export --armor $KEY > <%= basedir %>/key.asc
fi
|