10 lines
300 B
Bash
10 lines
300 B
Bash
|
#!/bin/sh
|
||
|
echo "hi"
|
||
|
|
||
|
UPDATES=$(arch-audit --upgradable | sed "{s/\n/<br>/g}")
|
||
|
echo $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"
|
||
|
fi
|