From 92b7c96a6b204a1ae6f66f964c3aff5f4ac4ab02 Mon Sep 17 00:00:00 2001 From: Daniel Mannarino Date: Thu, 31 Oct 2024 12:51:17 -0400 Subject: [PATCH] Fix unify script by pre-making dirs --- batch/scripts/_warp_and_upload.sh | 2 ++ batch/scripts/unify_projection.sh | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/batch/scripts/_warp_and_upload.sh b/batch/scripts/_warp_and_upload.sh index bf928a9c..b59fb54f 100644 --- a/batch/scripts/_warp_and_upload.sh +++ b/batch/scripts/_warp_and_upload.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -e + # arguments: # $0 - The name of this script # $1 - remote_src_file diff --git a/batch/scripts/unify_projection.sh b/batch/scripts/unify_projection.sh index fb92617e..21f306ab 100644 --- a/batch/scripts/unify_projection.sh +++ b/batch/scripts/unify_projection.sh @@ -1,7 +1,6 @@ #!/bin/bash set -e -set -x # requires arguments # -s | --source @@ -23,6 +22,9 @@ src_count=0 CMD_ARGS=() for s in ${SRC}; do + mkdir -p "SRC_${src_count}" + mkdir -p "REPROJECTED_${src_count}" + for f in ${files}; do remote_src_file=${s}/${f} local_src_file=SRC_${src_count}/${f}