diff --git a/void-updater.sh b/void-updater.sh index ad7dbc1..7e6fe8e 100755 --- a/void-updater.sh +++ b/void-updater.sh @@ -1,14 +1,14 @@ #!/bin/bash -nohup xbps-install -S -n=`xbps-install -Snu | wc -l` while true;do + n=$(xbps-install -Mnu 2>/dev/null | wc -l) + if [ $n -gt 0 ];then #zenity --info --title="Update Notifier - (${n})" --text="There are currently ${n} system updates available!" notify-send "There are ${n} system updates available" - echo "There are currently "${n}" updates available!" + echo "There are currently ${n} updates available!" fi