|
@@ -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
|