Skip to content
Snippets Groups Projects
Commit 5fa6ba1c authored by Natanael Copa's avatar Natanael Copa
Browse files

abuild-keygen: append hex timestamp to default key name

parent 93c26cd6
No related branches found
No related tags found
No related merge requests found
...@@ -42,9 +42,9 @@ if [ -z "$emailaddr" ] || [ "${emailaddr##*@}" = "$emailaddr" ]; then ...@@ -42,9 +42,9 @@ if [ -z "$emailaddr" ] || [ "${emailaddr##*@}" = "$emailaddr" ]; then
fi fi
if [ -n "$emailaddr" ]; then if [ -n "$emailaddr" ]; then
default_name="$emailaddr" default_name="$emailaddr-$(printf "%x" $(date +%s))"
else else
default_name="$USER" default_name="$USER-$(printf "%x" $(date +%s))"
fi fi
while getopts "ahi" opt; do while getopts "ahi" opt; do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment