From 816f3d9301d1232c4d1105daa80e4133338e36fe Mon Sep 17 00:00:00 2001 From: Akemi Izuko Date: Mon, 3 Mar 2025 11:42:54 -0700 Subject: [PATCH] Bash: fix last update time script --- bin/get_last_update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/get_last_update.sh b/bin/get_last_update.sh index d5fe118..533f9f3 100755 --- a/bin/get_last_update.sh +++ b/bin/get_last_update.sh @@ -2,7 +2,7 @@ # Gets the time of the last archlinux update. declare -i last_time="$( - rg -B1 'pacman -S(u|[yu]{2})$' "${HOME}/.bash_eternal_history" \ + rg -B1 'pacman -S(u|yu|uy)$' "${HOME}/.bash_eternal_history" \ | tac \ | awk '$0 ~ /^#/ { print substr($0, 2); exit }' )"