mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2024-12-22 07:00:28 +00:00
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
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user