From 284168295f41abeaef7c3a31f6de4392ca4ce888 Mon Sep 17 00:00:00 2001 From: Matthijs van der Wild Date: Mon, 7 Apr 2025 09:48:51 +0100 Subject: place symlink in CWL_SINGULARITY_CACHE if it exists --- pilot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pilot.sh') diff --git a/pilot.sh b/pilot.sh index 1137904..9bd2733 100644 --- a/pilot.sh +++ b/pilot.sh @@ -12,7 +12,7 @@ error() { set_container() { [ -f "${1}" ] || error "Container ${1} does not exist." - CWL_SINGULARITY_CACHE="${1%/*}" + CWL_SINGULARITY_CACHE="${CWL_SINGULARITY_CACHE:-$1%/*}" if [ ! "${1##*/}" == "vlbi-cwl.sif" ]; then ln -sf "${1}" "$CWL_SINGULARITY_CACHE/vlbi-cwl.sif" fi -- cgit v1.2.3