fix color (I think)
This commit is contained in:
parent
8a7f336032
commit
bc2dd1220e
1 changed files with 3 additions and 3 deletions
|
@ -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\","
|
||||
|
|
Loading…
Reference in a new issue