diff --git a/cv b/cv index 88a2879..da18d97 100755 --- a/cv +++ b/cv @@ -36,6 +36,12 @@ result(){ echo "Active: $(get | jq -r '.active')" echo "Today: $(get | jq -r '.todayCases')" echo "Tests: $(get | jq -r '.tests')" + if [ $(get | jq -r '.todayCases') == "0" ] + then + show "Seems like the cases today are not yet updated." + show "The data file will be removed. Please query again later." + ex "rm $data/$date-$country" + fi } show "Queried at: $date"