blob: 325b485fff77f594e92f5fc7856293ffadd5df0e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/usr/bin/env bash
if command -v checkupdates > /dev/null; then
n_updates=$(checkupdates | wc -l)
if [[ n_updates -gt 50 ]]; then
color='red'
elif [[ n_updates -gt 10 ]]; then
color='yellow'
else
color='gray'
fi
echo "<span color='$color'></span> $n_updates"
fi
|