Add support for country environment variable

This commit is contained in:
Michael De Roover 2020-05-12 14:50:53 +02:00
parent 0eaf2a62a9
commit 62179f5ad3
Signed by: vim
GPG Key ID: 075496E232CE04CB

6
cv
View File

@ -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 ]