Delete temp dir in update-fastly-ips script
authorJulien Cristau <jcristau@debian.org>
Wed, 3 Jan 2018 11:36:53 +0000 (12:36 +0100)
committerJulien Cristau <jcristau@debian.org>
Wed, 3 Jan 2018 11:36:53 +0000 (12:36 +0100)
modules/puppetmaster/files/update-fastly-ips.sh

index ab0871c..50f8cb7 100644 (file)
@@ -4,6 +4,7 @@ set -e
 
 dest="$1"
 tmp=$(mktemp -d)
+trap 'rm -rf $tmp' EXIT
 
 cd $tmp
 if [ -d /etc/ssl/ca-global ]; then