contrib/run_respdiff: handle ERR/EXIT correctly

parent dc5edafa
......@@ -59,9 +59,8 @@ cleanup() {
{%if database['remove_after'] %}
rm -rf ./*.mdb || :
{% endif %}
exit 0
}
trap cleanup ERR EXIT
trap cleanup EXIT
# Get database
wget --quiet -O {{ database['dest'] }} {{ database['url'] }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment