abuild-keygen: append hex timestamp to default key name

This commit is contained in:
Natanael Copa 2009-07-24 19:12:56 +00:00
parent 93c26cd6ea
commit 5fa6ba1c8f

View File

@ -42,9 +42,9 @@ if [ -z "$emailaddr" ] || [ "${emailaddr##*@}" = "$emailaddr" ]; then
fi
if [ -n "$emailaddr" ]; then
default_name="$emailaddr"
default_name="$emailaddr-$(printf "%x" $(date +%s))"
else
default_name="$USER"
default_name="$USER-$(printf "%x" $(date +%s))"
fi
while getopts "ahi" opt; do