Fix paru update count

This commit is contained in:
Hydroxycarbamide 2024-05-15 19:10:13 +02:00
parent b137bdc0ac
commit aadc4f7df7

View file

@ -1,9 +1,7 @@
#!/usr/bin/env bash
pkg_updates() {
updates=$(pacman -Qu | wc -l)
aurupdates=$(paru -Qua | wc -l)
updates=$((updates + aurupdates))
if [ $updates -gt 0 ]; then
updates=$(paru -Qu | wc -l)
if [ "$updates" -gt 0 ]; then
echo -n "$updates"
fi
}