checkupdates: Hide when no updates
Simply returning empty echo for 0 new packages.
This commit is contained in:
parent
ffcd11e3d9
commit
b069ca66de
|
|
@ -29,4 +29,6 @@ elif [ "$count" -gt 10 ]; then
|
|||
class="warning"
|
||||
fi
|
||||
|
||||
[ "$class" = "ok" ] && echo && exit
|
||||
|
||||
echo '{"text": "'$count'", "tooltip": "Updates pending: '$count'", "class": "'$class'"}'
|
||||
|
|
|
|||
Loading…
Reference in New Issue