dotfiles/bin/last-pkg-updates
2023-07-11 17:06:43 +03:00

5 lines
172 B
Bash
Executable file

#!/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'))"