From ada4996000d19330e17a41a3d30bdacb9ca7042f Mon Sep 17 00:00:00 2001 From: Matthijs van der Wild Date: Tue, 1 Apr 2025 15:26:24 +0100 Subject: make symlinking the container idempotent --- pilot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pilot.sh') diff --git a/pilot.sh b/pilot.sh index 2ecef80..1137904 100644 --- a/pilot.sh +++ b/pilot.sh @@ -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 } -- cgit v1.2.3