diff options
| author | Matthijs van der Wild <matthijs.van-der-wild@durham.ac.uk> | 2025-04-07 09:48:51 +0100 |
|---|---|---|
| committer | Matthijs van der Wild <matthijs.van-der-wild@durham.ac.uk> | 2025-04-07 09:48:51 +0100 |
| commit | 284168295f41abeaef7c3a31f6de4392ca4ce888 (patch) | |
| tree | 3dbaa4eb521af626558c76cf14ad8176561e4fe2 | |
| parent | ada4996000d19330e17a41a3d30bdacb9ca7042f (diff) | |
place symlink in CWL_SINGULARITY_CACHE if it exists
| -rw-r--r-- | pilot.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |