A collection of useful scripts that I use on my desktop machines.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
438 B

UPDATES=$(arch-audit --upgradable --show-testing | sed "{s/\n/<br>/g}")
if test "$1" != "true"
UPDATES=$(echo -e "$UPDATES" | grep -v "testing repos\!")
echo -e "$UPDATES"
if [ ! -z "$UPDATES" ]; then
sudo -u arisu DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus notify-send -u critical -t 86400000 -i update-high "Security updates are available" "$UPDATES" --app-name="Security Updates Check"