chezmoi/dot_dotfiles/polybar/polybar-scripts/updates-pacman/executable_updates-pacman.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

12 lines
158 B
Bash

#!/bin/sh
if ! updates=$(checkupdates 2> /dev/null | wc -l ); then
updates=0
fi
if [ "$updates" -gt 0 ]; then
echo "# $updates"
else
echo ""
fi