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

10 lines
128 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
echo "# $updates"
else
echo ""
fi