jitty-scripts/void-updater.sh

19 lines
351 B
Bash
Raw Normal View History

2016-04-03 07:27:51 -07:00
#!/bin/bash
nohup xbps-install -S
n=`xbps-install -Snu | wc -l`
while true;do
if [ $n -gt 0 ];then
2017-01-10 19:12:45 -07:00
#zenity --info --title="Update Notifier - (${n})"
--text="There are currently ${n} system updates available!"
notify-send "There are ${n} system updates available"
2016-04-03 07:27:51 -07:00
echo "There are currently "${n}" updates available!"
fi
sleep 60m
done