diff options
| author | Matthijs van der Wild <matthijs.van-der-wild@durham.ac.uk> | 2025-04-01 15:26:24 +0100 |
|---|---|---|
| committer | Matthijs van der Wild <matthijs.van-der-wild@durham.ac.uk> | 2025-04-01 15:26:24 +0100 |
| commit | ada4996000d19330e17a41a3d30bdacb9ca7042f (patch) | |
| tree | 18cce7b7243112c76f5b33ac720a6d6044feff5e | |
| parent | 1954aff199dba540be602e72b9c64068c1359950 (diff) | |
make symlinking the container idempotent
| -rw-r--r-- | pilot.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -14,7 +14,7 @@ set_container() { [ -f "${1}" ] || error "Container ${1} does not exist." CWL_SINGULARITY_CACHE="${1%/*}" if [ ! "${1##*/}" == "vlbi-cwl.sif" ]; then - ln -s "${1}" "$CWL_SINGULARITY_CACHE/vlbi-cwl.sif" + ln -sf "${1}" "$CWL_SINGULARITY_CACHE/vlbi-cwl.sif" fi } |