From 35acaff77b9495fc7f10dd4312e2173de21d26ca Mon Sep 17 00:00:00 2001 From: makefu Date: Thu, 4 Apr 2013 10:06:57 -0400 Subject: fix file traps --- retiolum/scripts/adv_graphgen/anonytize.sh | 3 +-- retiolum/scripts/adv_graphgen/sanitize.sh | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'retiolum/scripts') diff --git a/retiolum/scripts/adv_graphgen/anonytize.sh b/retiolum/scripts/adv_graphgen/anonytize.sh index 2e2045e4..4aad6993 100755 --- a/retiolum/scripts/adv_graphgen/anonytize.sh +++ b/retiolum/scripts/adv_graphgen/anonytize.sh @@ -10,7 +10,7 @@ TYPE=svg TYPE2=png OPENER=/bin/true DOTFILE=`mktemp --suffix=anon` -trap 'rm $DOTFILE' INT TERM KILL +trap 'rm $DOTFILE' INT TERM KILL EXIT sudo -E python tinc_stats2json |\ python parse_tinc_anon.py> $DOTFILE @@ -28,4 +28,3 @@ convert $1/retiolum_1.$TYPE $1/retiolum_1.$TYPE2 #convert -resize 20% $1/retiolum_2.$TYPE $1/retiolum_2.$TYPE2 #convert -resize 20% $1/retiolum_3.$TYPE $1/retiolum_3.$TYPE2 #convert -resize 20% $1/retiolum_4.$TYPE $1/retiolum_4.$TYPE2 -rm $DOTFILE diff --git a/retiolum/scripts/adv_graphgen/sanitize.sh b/retiolum/scripts/adv_graphgen/sanitize.sh index 846cc549..c8071dc3 100755 --- a/retiolum/scripts/adv_graphgen/sanitize.sh +++ b/retiolum/scripts/adv_graphgen/sanitize.sh @@ -10,7 +10,7 @@ TYPE=svg TYPE2=png OPENER=/bin/true DOTFILE=`mktemp --suffix=san` -trap 'rm $DOTFILE' INT TERM KILL +trap 'rm $DOTFILE' INT TERM KILL EXIT sudo -E python tinc_stats2json |\ python parse_tinc_stats.py > $DOTFILE -- cgit v1.2.3