Add more statistics
This commit is contained in:
parent
9fb4a3dc14
commit
376a46bf4d
12
cv
12
cv
@ -41,14 +41,16 @@ yget(){
|
|||||||
get "$1"
|
get "$1"
|
||||||
}
|
}
|
||||||
result(){
|
result(){
|
||||||
echo "Total: $(get cases)"
|
echo "Total: $(get cases)"
|
||||||
echo "Active: $(get active)"
|
echo "Active: $(get active)"
|
||||||
echo "New: $(get todayCases)"
|
echo "New: $(get todayCases)"
|
||||||
echo "Tests: $(get tests)"
|
echo "Deaths: $(get deaths)"
|
||||||
|
echo "Recovered: $(get recovered)"
|
||||||
|
echo "Tests: $(get tests)"
|
||||||
if [ -f "$data/$ydate-$country" ]
|
if [ -f "$data/$ydate-$country" ]
|
||||||
then
|
then
|
||||||
show "Yesterday's stats:"
|
show "Yesterday's stats:"
|
||||||
echo "New: $(yget todayCases)"
|
echo "New: $(yget todayCases)"
|
||||||
if [ "$(get todayCases)" == "0" ]
|
if [ "$(get todayCases)" == "0" ]
|
||||||
then
|
then
|
||||||
show "Seems like the cases today are not yet updated."
|
show "Seems like the cases today are not yet updated."
|
||||||
|
Reference in New Issue
Block a user