From 62179f5ad32641cc86e3671d22f8bbecf0deee0c Mon Sep 17 00:00:00 2001 From: Michael De Roover Date: Tue, 12 May 2020 14:50:53 +0200 Subject: [PATCH] Add support for country environment variable --- cv | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cv b/cv index a0d75a2..8398b29 100755 --- a/cv +++ b/cv @@ -21,7 +21,11 @@ then ex "mv /tmp/cv/* $data/ -v" fi -country=$1 +# If not set by an environment variable, set country to $1. +if [ -z $country ] +then + country=$1 +fi get(){ if [ -f $data/$date-$country ]