abuild-keygen: append hex timestamp to default key name
This commit is contained in:
parent
93c26cd6ea
commit
5fa6ba1c8f
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue