Skip to content

Commit

Permalink
refactor: use fewer calls to create now variable
Browse files Browse the repository at this point in the history
instead of `20240422_1713802685`, use `20240422121805` and skip call to `awk`

Signed-off-by: Lucas Larson <[email protected]>
  • Loading branch information
LucasLarson committed May 4, 2024
1 parent c6a2780 commit e8d72e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e8d72e6

Please sign in to comment.