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:
+2
-5
@@ -18,7 +18,6 @@ if [ -f /usr/bin/rsstail ];then
|
||||
feed='https://github.com/void-linux/void-packages/commits/master.atom'
|
||||
newpkgs='grep -e New -e new'
|
||||
updatedpkgs='grep -e Update -e update'
|
||||
sysupdates="xbps-install -S | xbps-install -Snu"
|
||||
|
||||
case "$1" in
|
||||
-nc)
|
||||
@@ -50,16 +49,14 @@ if [ -f /usr/bin/rsstail ];then
|
||||
|
||||
-sc)
|
||||
echo -e "Downloading feed info, please wait...\n"
|
||||
xbps-install -S &> /dev/null &>2
|
||||
getsys=$(xbps-install -nu | wc -l)
|
||||
getsys=$(xbps-install -Mnu 2>/dev/null | wc -l)
|
||||
NotifySwitch "There are ${getsys} system updates available\n"
|
||||
;;
|
||||
|
||||
-r)
|
||||
echo -e "Downloading feed info, please wait...\n"
|
||||
|
||||
nohup xbps-install -S
|
||||
getsys=$(xbps-install -Snu | wc -l)
|
||||
getsys=$(xbps-install -Mnu 2>/dev/null | wc -l)
|
||||
getnew=$(${feedcmd} ${feed} | ${newpkgs} | wc -l)
|
||||
getupdated=$(${feedcmd} ${feed} | ${updatedpkgs} | wc -l)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user