Skip to content

Commit 378612a

Browse files
author
BenjaminsM
committed
Merge pull request #248 from RoanKanninga/master
fixing header
2 parents f6fdd0f + 8ceabc9 commit 378612a

File tree

1 file changed

+6
-3
lines changed
  • molgenis-compute-core/src/main/resources/templates/slurm

1 file changed

+6
-3
lines changed

molgenis-compute-core/src/main/resources/templates/slurm/header_gaf.ftl

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,12 @@ set -u
1717
function errorExitandCleanUp()
1818
{
1919
echo "TRAPPED"
20-
printf "${taskId}\n" > /groups/umcg-gaf/tmp05/logs/${project}.failed
21-
tail -50 ${taskId}.err >> /groups/umcg-gaf/tmp05/logs/${project}.failed
22-
rm /groups/umcg-gaf/tmp05/tmp/${project}/*/tmp_${taskId}*
20+
printf "${taskId}\n" > /groups/umcg-gaf/${tmpName}/logs/${project}.failed
21+
if [ -f ${taskId}.err ]
22+
then
23+
tail -50 ${taskId}.err >> /groups/umcg-gaf/${tmpName}/logs/${project}.failed
24+
fi
25+
rm -rf /groups/umcg-gaf/${tmpName}/tmp/${project}/*/tmp_${taskId}*
2326
}
2427

2528
declare MC_tmpFolder="tmpFolder"

0 commit comments

Comments
 (0)