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

10 lines
177 B
Bash

#!/bin/sh
updates=$(flatpak update 2>/dev/null | tail -n +5 | grep -Ecv "^$|^Proceed|^Nothing")
if [ "$updates" -gt 0 ]; then
echo "flatpak: $updates"
else
echo ""
fi