From 83939d5e215303360407d2783f79562052716bc2 Mon Sep 17 00:00:00 2001
From: David Hoese <david.hoese@ssec.wisc.edu>
Date: Tue, 21 Jan 2020 10:33:45 -0600
Subject: [PATCH] Fix tile generation check for remapping flag

---
 tile_gen/run.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tile_gen/run.sh b/tile_gen/run.sh
index 2b27502..6ba9317 100755
--- a/tile_gen/run.sh
+++ b/tile_gen/run.sh
@@ -33,7 +33,7 @@ run_tile_gen() {
     instrument=${3,,}
     data_type=${4,,}
     path="$5"
-    echo "Starting Geo2Grid processing for ${path}"
+    echo "Starting tile generation processing for ${path}"
     # convert path from a relative path to an absolute path
     path="/data/${path}"
 
@@ -50,7 +50,7 @@ run_tile_gen() {
     # generate_tiles.py will make a temporary directory
     out_dir="${dst_dir}/tiles/${satellite_id}/${instrument}/${data_type}"
     # if we are going to remap, separate the geotiffs and shapefile from unremapped
-    if [[ ${TILE_ARGS} == *"--remap" ]]; then
+    if [[ ${TILE_ARGS} == *"--remap"* ]]; then
         out_dir="${out_dir}_ll"
     fi
     mkdir -p ${out_dir}
-- 
GitLab