Bash: fix last update time script

This commit is contained in:
Akemi Izuko 2025-03-03 11:42:54 -07:00
parent 134ee2d9d2
commit 816f3d9301
Signed by: akemi
GPG key ID: 8DE0764E1809E9FC

View file

@ -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 }'
)"