Hyprland-dotfiles/scripts/cu.sh
Stephan Raabe 8a799fc241 Updates
2023-03-02 09:45:31 +01:00

15 lines
307 B
Bash
Executable File

#!/bin/bash
pacmanUpdates=$(pacman -Syup | grep http:// | wc -l)
aurUpdates=$(yaourt -Qua | grep aur | wc -l)
if [ "$pacmanUpdates" -gt 0 ]; then
updateCount="$pacmanUpdates"
elif [ "$aurUpdates" -gt 0 ]; then
updateCount="A$aurUpdates"
else
updateCount=0
fi
echo "$updateCount" > /tmp/updateCount