Commit 5fa6ba1c authored by Natanael Copa's avatar Natanael Copa

abuild-keygen: append hex timestamp to default key name

parent 93c26cd6
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment