Bash: fix last update time script
This commit is contained in:
parent
134ee2d9d2
commit
816f3d9301
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
||||||
# Gets the time of the last archlinux update.
|
# Gets the time of the last archlinux update.
|
||||||
|
|
||||||
declare -i last_time="$(
|
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 \
|
| tac \
|
||||||
| awk '$0 ~ /^#/ { print substr($0, 2); exit }'
|
| awk '$0 ~ /^#/ { print substr($0, 2); exit }'
|
||||||
)"
|
)"
|
||||||
|
|
Loading…
Reference in a new issue