conf2/i3/.config/polybar/updates-arch-combined.sh

10 lines
126 B
Bash
Raw Normal View History

2018-06-13 19:38:45 +00:00
#!/bin/sh
2018-06-27 17:10:06 +00:00
updates=$(checkupdates 2>/dev/null | wc -l)
2018-06-13 19:38:45 +00:00
if [ "$updates" -gt 0 ]; then
2020-06-14 19:52:57 +00:00
echo "$updates"
2018-06-13 19:38:45 +00:00
else
echo ""
fi