voidcheck.sh: remove stray redirect that created a file named 2

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-29 14:59:00 -04:00
co-authored by Claude Opus 5.5
parent 8ea48e0817
commit 863738df17
+2 -5
View File
@@ -18,7 +18,6 @@ if [ -f /usr/bin/rsstail ];then
feed='https://github.com/void-linux/void-packages/commits/master.atom' feed='https://github.com/void-linux/void-packages/commits/master.atom'
newpkgs='grep -e New -e new' newpkgs='grep -e New -e new'
updatedpkgs='grep -e Update -e update' updatedpkgs='grep -e Update -e update'
sysupdates="xbps-install -S | xbps-install -Snu"
case "$1" in case "$1" in
-nc) -nc)
@@ -50,16 +49,14 @@ if [ -f /usr/bin/rsstail ];then
-sc) -sc)
echo -e "Downloading feed info, please wait...\n" echo -e "Downloading feed info, please wait...\n"
xbps-install -S &> /dev/null &>2 getsys=$(xbps-install -Mnu 2>/dev/null | wc -l)
getsys=$(xbps-install -nu | wc -l)
NotifySwitch "There are ${getsys} system updates available\n" NotifySwitch "There are ${getsys} system updates available\n"
;; ;;
-r) -r)
echo -e "Downloading feed info, please wait...\n" echo -e "Downloading feed info, please wait...\n"
nohup xbps-install -S getsys=$(xbps-install -Mnu 2>/dev/null | wc -l)
getsys=$(xbps-install -Snu | wc -l)
getnew=$(${feedcmd} ${feed} | ${newpkgs} | wc -l) getnew=$(${feedcmd} ${feed} | ${newpkgs} | wc -l)
getupdated=$(${feedcmd} ${feed} | ${updatedpkgs} | wc -l) getupdated=$(${feedcmd} ${feed} | ${updatedpkgs} | wc -l)