2017-11-22 01:27:01 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2018-03-06 14:47:28 +01:00
|
|
|
if [ -f /dev/shm/claws_offline ]
|
|
|
|
then
|
|
|
|
echo "<span foreground=\"#F2777A\">█</span>"
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
avail=$(checkupdates | wc -l)
|
2017-11-22 01:27:01 +01:00
|
|
|
|
2018-03-06 14:47:28 +01:00
|
|
|
if [[ $avail -eq 0 ]]
|
2017-11-22 01:27:01 +01:00
|
|
|
then
|
2018-03-06 14:47:28 +01:00
|
|
|
echo "<span foreground=\"#99CC99\">█</span>"
|
2017-11-22 01:27:01 +01:00
|
|
|
else
|
2018-03-06 14:47:28 +01:00
|
|
|
echo "<span foreground=\"#FFCC66\">█</span>"
|
2017-11-22 01:27:01 +01:00
|
|
|
fi
|