Updated.
This commit is contained in:
11
polybar/scripts/xbps-updates.sh.bkp
Executable file
11
polybar/scripts/xbps-updates.sh.bkp
Executable file
@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
updates=$(xbps-install -Mun 2> /dev/null | wc -l)
|
||||
|
||||
if [ -n "$updates" ] && [ "$updates" -eq 1 ]; then
|
||||
echo "$updates XBPS update available"
|
||||
elif [ -n "$updates" ] && [ "$updates" -gt 1 ]; then
|
||||
echo "$updates XBPS updates available"
|
||||
else
|
||||
echo ""
|
||||
fi
|
Reference in New Issue
Block a user