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

10 lines
128 B
Bash

#!/bin/sh
updates=$(dnf updateinfo -q --list | wc -l)
if [ "$updates" -gt 0 ]; then
echo "# $updates"
else
echo ""
fi