aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthijs van der Wild <matthijs.van-der-wild@durham.ac.uk>2025-03-31 23:53:03 +0100
committerMatthijs van der Wild <matthijs.van-der-wild@durham.ac.uk>2025-03-31 23:53:03 +0100
commitf94ad8a6e9ad29b2821e63211c54bd5b92668807 (patch)
tree495c7277b2d343a501ec3d9cb13f86ed7b009e7f
parent2140c22919891005d9abdd0cab23bf67b7f8b436 (diff)
ensure that scratch storage directory exists
-rw-r--r--pilot.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/pilot.sh b/pilot.sh
index 29c38dc..0131b02 100644
--- a/pilot.sh
+++ b/pilot.sh
@@ -72,6 +72,7 @@ mkdir -p "$TMP_OUTDIR"
TMPDIR_PREFIX=""
if [ ! -z "${SCRATCH}" ]; then
TMPDIR_PREFIX="--tmpdir-prefix ${SCRATCH}/tmp_${WORKFLOW_NAME}/"
+ mkdir -p "${SCRATCH}/tmp_${WORKFLOW_NAME}"
fi
# Print information relevant for the run