Fixes #293
die() wasn't calling clean_temp; Now it is. Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
This commit is contained in:
parent
c93d8066cb
commit
e1f8aed886
@ -254,6 +254,7 @@ die() {
|
|||||||
Easy-RSA error:
|
Easy-RSA error:
|
||||||
|
|
||||||
$1" 1>&2
|
$1" 1>&2
|
||||||
|
clean_temp;
|
||||||
prog_exit "${2:-1}"
|
prog_exit "${2:-1}"
|
||||||
} # => die()
|
} # => die()
|
||||||
|
|
||||||
@ -1622,7 +1623,7 @@ done
|
|||||||
vars_setup
|
vars_setup
|
||||||
|
|
||||||
# Register clean_temp and prog_exit on SIGHUP, SIGINT, SIGQUIT, and SIGABRT
|
# 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 2" 2
|
||||||
trap "clean_temp; prog_exit 3" 3
|
trap "clean_temp; prog_exit 3" 3
|
||||||
trap "clean_temp; prog_exit 6" 6
|
trap "clean_temp; prog_exit 6" 6
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user