#!/bin/bash KEY="`/usr/bin/gpg --with-colon --list-secret-keys | cut -d : -f 5 | head -1`" /usr/bin/gpg --export -a $KEY > <%= basedir %>/key.asc