Browse Source

Fix bug for Zenobe resubmission

Pierre-Yves Barriat 6 years ago
parent
commit
021071e243
1 changed files with 1 additions and 1 deletions
  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