From 8ceabc95db53e80612f924d1a5403268ce75c0e9 Mon Sep 17 00:00:00 2001 From: RoanKanninga Date: Thu, 7 Apr 2016 14:22:03 +0200 Subject: [PATCH] fixing header --- .../src/main/resources/templates/slurm/header_gaf.ftl | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/molgenis-compute-core/src/main/resources/templates/slurm/header_gaf.ftl b/molgenis-compute-core/src/main/resources/templates/slurm/header_gaf.ftl index d011add..aceadc3 100644 --- a/molgenis-compute-core/src/main/resources/templates/slurm/header_gaf.ftl +++ b/molgenis-compute-core/src/main/resources/templates/slurm/header_gaf.ftl @@ -17,9 +17,12 @@ set -u function errorExitandCleanUp() { echo "TRAPPED" - printf "${taskId}\n" > /groups/umcg-gaf/tmp05/logs/${project}.failed - tail -50 ${taskId}.err >> /groups/umcg-gaf/tmp05/logs/${project}.failed - rm /groups/umcg-gaf/tmp05/tmp/${project}/*/tmp_${taskId}* + printf "${taskId}\n" > /groups/umcg-gaf/${tmpName}/logs/${project}.failed + if [ -f ${taskId}.err ] + then + tail -50 ${taskId}.err >> /groups/umcg-gaf/${tmpName}/logs/${project}.failed + fi + rm -rf /groups/umcg-gaf/${tmpName}/tmp/${project}/*/tmp_${taskId}* } declare MC_tmpFolder="tmpFolder"