summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-07-24 19:12:56 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-07-24 19:12:56 +0000
commit5fa6ba1c8f11a11fe456c730e208b608475e9b8d (patch)
tree1c944e156b8dadd5060b2911c5f0088065c1cd1a
parent93c26cd6ea529ea4486750a7264475d54be79362 (diff)
downloadalpine-iso-5fa6ba1c8f11a11fe456c730e208b608475e9b8d.tar.bz2
alpine-iso-5fa6ba1c8f11a11fe456c730e208b608475e9b8d.tar.xz
abuild-keygen: append hex timestamp to default key name
-rw-r--r--abuild-keygen.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/abuild-keygen.in b/abuild-keygen.in
index 29e9b40..af1ad90 100644
--- a/abuild-keygen.in
+++ b/abuild-keygen.in
@@ -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