2023-05-26 14:51:07 +02:00
|
|
|
#!/bin/sh
|
2023-05-26 15:37:55 +02:00
|
|
|
count="$(checkupdates-with-aur | wc -l)"
|
2023-05-26 14:51:07 +02:00
|
|
|
|
|
|
|
|
class="ok"
|
|
|
|
|
if [ "$count" -gt 0 ]; then
|
|
|
|
|
class="urgent"
|
|
|
|
|
elif [ "$count" -gt 10 ]; then
|
|
|
|
|
class="warning"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
echo '{"text": "'$count'", "tooltip": "Updates pending: '$count'", "class": "'$class'"}'
|