From 5c7cd17bafd72af55d7ef5098fafc0de0f2c0366 Mon Sep 17 00:00:00 2001 From: RoanKanninga Date: Mon, 20 Jun 2016 10:36:01 +0200 Subject: [PATCH] fixing falsely TRAPPED message --- .../src/main/resources/templates/slurm/footer_gaf.ftl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/molgenis-compute-core/src/main/resources/templates/slurm/footer_gaf.ftl b/molgenis-compute-core/src/main/resources/templates/slurm/footer_gaf.ftl index 20685d1..899ff86 100644 --- a/molgenis-compute-core/src/main/resources/templates/slurm/footer_gaf.ftl +++ b/molgenis-compute-core/src/main/resources/templates/slurm/footer_gaf.ftl @@ -1,8 +1,8 @@ touch ${taskId}.sh.finished echo "On $(date +"%Y-%m-%d %T"), after $(( ($(date +%s) - $MOLGENIS_START) / 60 )) minutes, task ${taskId} finished successfully" >> molgenis.bookkeeping.log - -if [ -d <#noparse>${MC_tmpFolder:-} ]; +<#noparse> +if [ -d ${MC_tmpFolder:-} ]; then echo "removed tmpFolder $MC_tmpFolder" rm -r $MC_tmpFolder @@ -10,3 +10,4 @@ fi trap - EXIT exit 0 +