From 27e8d3fdd1dd0dee41d03e3cc31846423b994439 Mon Sep 17 00:00:00 2001 From: Simon Rit Date: Thu, 27 Jun 2013 16:31:05 +0200 Subject: [PATCH] Added trap as suggested by Fabrice --- cluster_tools/gate_job_cluster.job | 1 + 1 file changed, 1 insertion(+) diff --git a/cluster_tools/gate_job_cluster.job b/cluster_tools/gate_job_cluster.job index 52540b2..6b893b1 100644 --- a/cluster_tools/gate_job_cluster.job +++ b/cluster_tools/gate_job_cluster.job @@ -65,6 +65,7 @@ test -d "${MACRODIR}" && test -d "${MACRODIR}/mac" || error "invalid macro" echo "Copying inputs" LOCALMACRODIR=$(mktemp -d) +trap "rm -rf ${LOCALMACRODIR} ; exit 1" 1 2 3 15 cd ${LOCALMACRODIR} cp -r -L "${MACRODIR}"/{data,mac} . mkdir output -- 2.47.1