checkupdates: Hide when no updates

Simply returning empty echo for 0 new packages.
This commit is contained in:
Harzo 2023-05-27 22:22:18 +02:00
parent ffcd11e3d9
commit b069ca66de
1 changed files with 2 additions and 0 deletions

View File

@ -29,4 +29,6 @@ elif [ "$count" -gt 10 ]; then
class="warning" class="warning"
fi fi
[ "$class" = "ok" ] && echo && exit
echo '{"text": "'$count'", "tooltip": "Updates pending: '$count'", "class": "'$class'"}' echo '{"text": "'$count'", "tooltip": "Updates pending: '$count'", "class": "'$class'"}'