diff --git a/cv b/cv index d69ba3d..d9e3152 100755 --- a/cv +++ b/cv @@ -55,12 +55,7 @@ result(){ then show "Yesterday's stats:" echo "New: $(yget todayCases)" - if [ "$(get 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" - elif [ "$(get todayCases)" == "$(yget todayCases)" ] + if [ "$(get todayCases)" == "$(yget todayCases)" ] then show "Seems like the stats are the same as yesterday." show "This could be normal but may mean that the data file is still yesterday's." @@ -74,6 +69,12 @@ result(){ else show "Yesterday's data file for this country doesn't exist." fi + if [ "$(get todayCases)" == "0" ] + then + show "Seems like the cases today are not yet updated." + show "The data file will be removed. Please try again later." + ex "rm $data/$date-$country" + fi } show "Queried at: $date"