You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
227 B
15 lines
227 B
7 years ago
|
#!/usr/bin/sh
|
||
|
|
||
7 years ago
|
count=$(ssh homeServer -t checkupdates | wc -l)
|
||
7 years ago
|
if [ "$count" = "0" ]; then
|
||
7 years ago
|
echo ""
|
||
7 years ago
|
else
|
||
6 years ago
|
echo "$label $count"
|
||
|
echo "$label $count"
|
||
7 years ago
|
if [ "$count" -gt "5" ]; then
|
||
|
echo "#FFOOOO"
|
||
|
else
|
||
|
echo "#FF8000"
|
||
|
fi
|
||
7 years ago
|
fi
|