blob: 41c34dc79ac8353b7ed10f887d99d2b1bcc6d889 (
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 150 ]]; then
color='red'
elif [[ n_updates -gt 50 ]]; then
color='yellow'
else
color='gray'
fi
echo "<span color='$color'></span> $n_updates"
fi
|