aboutsummaryrefslogtreecommitdiff
path: root/pilot.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pilot.sh')
-rw-r--r--pilot.sh2
1 files changed, 1 insertions, 1 deletions
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