From 8f6060c5fe07c475cd53c367ab791251168ab460 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sun, 6 Mar 2022 02:29:37 -0300 Subject: aux/: Update --- aux/lib.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'aux/lib.sh') diff --git a/aux/lib.sh b/aux/lib.sh index d64409a..ba18f9a 100755 --- a/aux/lib.sh +++ b/aux/lib.sh @@ -8,12 +8,12 @@ uuid() { # Taken from: # https://serverfault.com/a/799198 od -xN20 /dev/urandom | - head -1 | + head -n1 | awk '{OFS="-"; print $2$3,$4,$5,$6,$7$8$9}' } tmpname() { - echo 'mkstemp(template)' | m4 -D template="${TMPDIR:-/tmp}/m4-tmpname." + echo "${TMPDIR:-/tmp}/uuid-tmpname with spaces.$(uuid)" } mkstemp() { -- cgit v1.2.3