From e8d72e6d466f3b8d8959dd80ce7961ceab8dd8fc Mon Sep 17 00:00:00 2001 From: Lucas Larson Date: Mon, 22 Apr 2024 12:18:36 -0400 Subject: [PATCH] refactor: use fewer calls to create `now` variable instead of `20240422_1713802685`, use `20240422121805` and skip call to `awk` Signed-off-by: Lucas Larson --- setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup b/setup index 1b08f094ea..50a609f159 100755 --- a/setup +++ b/setup @@ -37,7 +37,7 @@ cd -- "${HOME%/}" || exit 1 # save `date` for backup files -now="$(command -p -- date -- '+%Y%m%d')"_"$(command -p -- awk -- 'BEGIN {srand(); print srand()}')" +now="$(command -p -- date -- '+%Y%m%d%H%M%S')" # unset `$PS4` # if this quaternary prompt string is already unset, then