1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2024-12-24 17:36:47 +00:00
dotfiles/.config/polybar/scripts/check_updates

9 lines
199 B
Plaintext
Raw Normal View History

2019-07-18 16:45:46 +00:00
#!/usr/bin/env bash
while true; do
UPDATES=$(checkupdates 2>/dev/null | wc -l)
[ "$UPDATES" -gt 0 ] && echo " $UPDATES" && sleep 30
[ "$UPDATES" -eq 0 ] && echo "" && sleep 300
2019-07-18 16:45:46 +00:00
done