slurm: fix sanity logic

This commit is contained in:
Starbeamrainbowlabs 2022-11-01 19:38:04 +00:00
parent 79b231198f
commit c17a4ca05a
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -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";