Files
dot-files/polybar/scripts/xbps-updates.sh
2021-12-05 09:38:44 +01:00

10 lines
157 B
Bash
Executable File

#!/bin/sh
updates=$(xbps-install -Mun 2> /dev/null | wc -l)
if [ -n "$updates" ] && [ "$updates" -gt 0 ]; then
echo "$updates"
else
echo ""
fi