diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-07-24 19:12:56 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-07-24 19:12:56 +0000 |
commit | 5fa6ba1c8f11a11fe456c730e208b608475e9b8d (patch) | |
tree | 1c944e156b8dadd5060b2911c5f0088065c1cd1a /abuild-keygen.in | |
parent | 93c26cd6ea529ea4486750a7264475d54be79362 (diff) | |
download | abuild-5fa6ba1c8f11a11fe456c730e208b608475e9b8d.tar.gz abuild-5fa6ba1c8f11a11fe456c730e208b608475e9b8d.tar.bz2 abuild-5fa6ba1c8f11a11fe456c730e208b608475e9b8d.tar.xz abuild-5fa6ba1c8f11a11fe456c730e208b608475e9b8d.zip |
abuild-keygen: append hex timestamp to default key name
Diffstat (limited to 'abuild-keygen.in')
-rw-r--r-- | abuild-keygen.in | 4 |
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 |