From ea464c1b084eca017e8a55605c80e2a8309d901c Mon Sep 17 00:00:00 2001 From: Eric F Crist Date: Tue, 29 Jan 2019 13:32:36 -0600 Subject: [PATCH] Fixes #293 die() wasn't calling clean_temp; Now it is. Signed-off-by: Eric F Crist --- easyrsa3/easyrsa | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index 00fc0cd..33cd339 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -254,6 +254,7 @@ die() { Easy-RSA error: $1" 1>&2 + clean_temp; prog_exit "${2:-1}" } # => die() @@ -1622,7 +1623,7 @@ done vars_setup # Register clean_temp and prog_exit on SIGHUP, SIGINT, SIGQUIT, and SIGABRT -trap "clean_temp; prog_exit 1" 1 +trap "clean_temp; prog_exit 1" 1 ERR trap "clean_temp; prog_exit 2" 2 trap "clean_temp; prog_exit 3" 3 trap "clean_temp; prog_exit 6" 6