summaryrefslogtreecommitdiffstats
path: root/retiolum/scripts/adv_graphgen/anonytize.sh
diff options
context:
space:
mode:
authorYour Name <you@example.com>2013-04-08 04:01:36 -0400
committerYour Name <you@example.com>2013-04-08 04:01:36 -0400
commit7477ce7e871a48a597b2e7d21561bb1d6fb4466b (patch)
treea7c37fee7b1e141d36d030993c40ddeab9d069d1 /retiolum/scripts/adv_graphgen/anonytize.sh
parent2b74acb096d971a680914cf284c2f9b0c99d7ff3 (diff)
parentf6dfecb5faf564b11a3c9bdfcaecab3f60b26a14 (diff)
Merge branch 'master' of https://github.com/krebscode/painload
Diffstat (limited to 'retiolum/scripts/adv_graphgen/anonytize.sh')
-rwxr-xr-xretiolum/scripts/adv_graphgen/anonytize.sh3
1 files changed, 1 insertions, 2 deletions
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