Use 'full-upgrade' output in restart warning

This commit is contained in:
John Mertz 2022-11-14 10:59:47 -05:00
parent 7b4a3bd1ba
commit ccc9cdd2a7
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ elif [ "$1" == 'upgrade' ]; then
let COUNT--
echo $COUNT > /home/jpm/.spool/apt-upgradeable
if [ -e /var/run/reboot-required ]; then
cat /var/log/apt/history.log | tr "\n" "%" | sed -e 's/.*\(Start-Date\)/\1/g' | tr "%" "\n" | swaynag --config=${HOME}/.dotfiles/sway/swaynag --edge=bottom --message="New packages require restart" --button="Restart Now" "sudo systemctl reboot" --dismiss-button="Later" --detailed-message --detailed-button "Show/Hide Upgrade Details"
grep -B1 -A4 upgrade /var/log/apt/history.log | tail -n 6 | swaynag --config=${HOME}/.dotfiles/sway/swaynag --edge=bottom --message="New packages require restart" --button="Restart Now" "sudo systemctl reboot" --dismiss-button="Later" --detailed-message --detailed-button "Show/Hide Upgrade Details"
fi
elif [ "$1" == 'update' ]; then
sudo apt update >/dev/null 2>/dev/null