dotfiles/.config/polybar/scripts/updates-xbps.sh
2024-01-29 08:31:23 -06:00

10 lines
155 B
Bash

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