improve trap handling

This commit is contained in:
Ben Allen
2017-07-11 16:04:27 -05:00
parent 93b815ecf2
commit f787c57636

View File

@@ -394,7 +394,7 @@ cleanTemp(){
}
# Delete the temporary report file if we get interrupted/terminated
trap cleanTemp SIGHUP SIGINT SIGTERM
trap cleanTemp EXIT
# Get a list of all available AWS Regions
REGIONS=$($AWSCLI ec2 describe-regions --query 'Regions[].RegionName' \