elas-arch-config/waybar/.config/waybar/scripts/updates-arch-combined.sh
2024-07-22 22:18:54 +02:00

17 lines
310 B
Bash
Executable file

#!/bin/sh
if ! update_count_pacman=$(checkupdates | wc -l); then
update_count_pacman=0
fi
if ! update_count_aur=$(paru -Qum 2>/dev/null | wc -l); then
update_count_aur=0
fi
update_count=$((update_count_pacman + update_count_aur))
if [ "$update_count" -gt 0 ]; then
echo "$update_count"
else
echo ''
fi