fix color (I think)

This commit is contained in:
histausse 2022-02-07 13:08:46 +01:00
parent 8a7f336032
commit bc2dd1220e
Signed by: histausse
GPG key ID: 67486F107F62E9E9

View file

@ -12,10 +12,10 @@ do
line=`echo "${line}" | sed 's/^,\{0,1\}\[//' | sed 's/\]$//'`
NB_UPDATES=`/sbin/checkupdates | /sbin/wc -l`
NB_UPDATES_COLOR="#40AA40"
if [ $NB_UPDATES -ge 10 ] ; then
NB_UPDATES_COLOR="#FF8C00"
elif [ $NB_UPDATES -ge 25 ] ; then
if [ $NB_UPDATES -ge 25 ] ; then
NB_UPDATES_COLOR="#FF0000"
elif [ $NB_UPDATES -ge 10 ] ; then
NB_UPDATES_COLOR="#FF8C00"
fi
echo -n "{"
echo -n "\"name\":\"updates\","