From c17a4ca05abe184c632fdbc0e599b9997553fdec Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Tue, 1 Nov 2022 19:38:04 +0000 Subject: [PATCH] slurm: fix sanity logic --- rainfallwrangler/slurm-process.job | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rainfallwrangler/slurm-process.job b/rainfallwrangler/slurm-process.job index 251ef2d..5189c91 100755 --- a/rainfallwrangler/slurm-process.job +++ b/rainfallwrangler/slurm-process.job @@ -46,8 +46,7 @@ if [[ ! -r "${WATER}" ]]; then fi if [[ ! -d "${OUTPUT}" ]]; then - echo "Error: That output directory either doesn't exist, isn't a directory, or we don't have permission to access it."; - exit 3; + mkdir "${OUTPUT}"; fi export PATH=$HOME/software/bin:$PATH; @@ -56,6 +55,8 @@ export PATH=$HOME/software/bin:$PATH; OUTPUT_UNIQ="${OUTPUT%/}_uniq"; # Stript trailing slash, if present OUTPUT_TFRECORD="${OUTPUT%/}_tfrecord"; # Stript trailing slash, if present +mkd -p "${OUTPUT_UNIQ}" "${OUTPUT_TFRECORD}"; + echo ">>> Settings"; echo "RAINFALL $RAINFALL";