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)