Using standardized conditions for starting transfair

This commit is contained in:
Gerhard Salvini
2024-03-19 09:07:56 +01:00
parent 0d1f425df0
commit b9b44d2530
2 changed files with 13 additions and 2 deletions

View File

@ -284,7 +284,7 @@ function build_transfair() {
#
# 1. There is no data lock file (which means that no ETL has yet been run) and
# 2. There is data available.
if [ ! -f "../ecdc/data/lock" ] && [ ! -z "$(ls -A ../ecdc/data)" ]; then
if [ -f ../ecdc/data/*.[cC][sS][vV] ] && [ ! -f ../ecdc/data/lock ]; then
cd $base_dir/transfair
docker build --progress=plain -t samply/transfair --no-cache .
cd -