Pārlūkot izejas kodu

Fix bug for Zenobe resubmission

Pierre-Yves Barriat 6 gadi atpakaļ
vecāks
revīzija
021071e243
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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