dotfiles/bin/last-pkg-updates

6 lines
172 B
Plaintext
Raw Normal View History

2023-07-11 10:06:43 -04:00
#!/bin/sh
last_pkg_updates=$(grep 'pacman -Suuy' /var/log/pacman.log | tail -1 | tr -d '[' | cut -f 1 -d 'T')
echo "Last update: $last_pkg_updates ($(date +'%Y-%m-%d'))"