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

10 lines
126 B
Bash
Raw Normal View History

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