From ccc9cdd2a7c37ecdcb1226a21cb20c9f0b0e3523 Mon Sep 17 00:00:00 2001 From: John Mertz Date: Mon, 14 Nov 2022 10:59:47 -0500 Subject: [PATCH] Use 'full-upgrade' output in restart warning --- waybar/waybar-debian.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waybar/waybar-debian.sh b/waybar/waybar-debian.sh index c76ec86..2302612 100755 --- a/waybar/waybar-debian.sh +++ b/waybar/waybar-debian.sh @@ -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