chezmoi/dot_dotfiles/polybar/polybar-scripts/updates-aurhelper/executable_updates-aurhelper.sh
Joachim Nielandt 11c51544b9 Removed the polybar-scripts repo from this repository.
- from now on: pull polybar-scripts into ~/.config
- any desired scripts are copied into $CHEZMOI/polybar/polybar-scripts
- then, check for differences between $CHEZMOI/polybar/polybar-scripts
- TODO perform these diff checks using a script
2021-11-08 10:50:56 +01:00

17 lines
445 B
Bash

#!/bin/sh
if ! updates=$(yay -Qum 2> /dev/null | wc -l); then
# if ! updates=$(paru -Qum 2> /dev/null | wc -l); then
# if ! updates=$(cower -u 2> /dev/null | wc -l); then
# if ! updates=$(trizen -Su --aur --quiet | wc -l); then
# if ! updates=$(pikaur -Qua 2> /dev/null | wc -l); then
# if ! updates=$(rua upgrade --printonly 2> /dev/null | wc -l); then
updates=0
fi
if [ "$updates" -gt 0 ]; then
echo "# $updates"
else
echo ""
fi