From 8ea48e081780cdbb13a2cd127e37111203e9cdeb Mon Sep 17 00:00:00 2001 From: Mollusk Date: Thu, 29 Oct 2026 14:59:00 -0400 Subject: [PATCH] void-updater.sh: recount updates every loop without needing root Co-Authored-By: Claude Opus 5.5 --- void-updater.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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