From a55248f232fb2fb5639837b065c5f27852b37311 Mon Sep 17 00:00:00 2001 From: Michael De Roover Date: Wed, 12 Aug 2020 13:47:44 +0200 Subject: [PATCH] Allow option for yesterday's stats to contain any value --- cv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cv b/cv index dcf874e..651fc9f 100755 --- a/cv +++ b/cv @@ -10,7 +10,7 @@ country=$1 [ -z $ydate ] && ydate=$(date -d yesterday $dfmt) # Get yesterday's stats for queries after midnight. -if [ "$2" == "yesterday" ] +if [ ! -z $2 ] then date=$(date -d yesterday $dfmt) ydate=$(date -d "2 days ago" $dfmt)