aboutsummaryrefslogtreecommitdiff
path: root/pilot.sh
diff options
context:
space:
mode:
authorMatthijs van der Wild <matthijs.van-der-wild@durham.ac.uk>2025-07-09 14:55:08 -0400
committerMatthijs van der Wild <matthijs.van-der-wild@durham.ac.uk>2025-07-09 14:55:08 -0400
commite4640d7d2803b872babfa239c49afb5978b6686c (patch)
tree05c401d24c6dea036bae3de980c27daeb3b1a48e /pilot.sh
parent27c095276c6a0674ad386eecf6ea68413ef1af5c (diff)
bugfix: set $PROGRAM before use
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 61e02af..1256739 100644
--- a/pilot.sh
+++ b/pilot.sh
@@ -27,6 +27,7 @@ eval set -- "$opts"
RESTART=""
SCRATCH=""
BATCH_SYSTEM="slurm"
+PROGRAM="${0##*/}"
while true; do
case "$1" in
-c | --container) set_container "${2}"; shift 2 ;;
@@ -41,7 +42,6 @@ while true; do
esac
done
-PROGRAM="${0##*/}"
# TODO: clean this up
WORKFLOW="${PIPELINE}/workflows/${1}.cwl"