Explorar o código

Fix bug for Zenobe resubmission

Pierre-Yves Barriat %!s(int64=6) %!d(string=hai) anos
pai
achega
021071e243
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      templates/scripts/skeleton.sh

+ 1 - 1
templates/scripts/skeleton.sh

@@ -266,7 +266,7 @@ if (( leg_end_epoch < run_end_epoch )) ; then
     #[[ $@ == *local* ]] && exec $0 $@ || scontrol requeue $SLURM_JOB_ID #TODO: factorize this
     if [[ "$@" == *"local"* ]] ; then
         exec "$0" "$@"
-    elif [[ "sbatch" == *"sbatch"* ]] ; then
+    elif [ "${submit_command}" == *sbatch* ] ; then
         sbatch $0 $@ | awk '{print $4}' >> ${run_dir}/.coral_jobs
     else
         "qsub" -v PBS_OPTIONS="$@" "$0" | tee -a coral_jobs