diff --git a/lib/aaa_errors.sh b/lib/aaa_errors.sh index f350189..13d156e 100644 --- a/lib/aaa_errors.sh +++ b/lib/aaa_errors.sh @@ -72,7 +72,7 @@ trap "error ${LINENO}; backtrace; err_exit" ERR # Exit program in case of error unless keepgoing is set to true function err_exit { - if [[ -n $tmpfile ]]; then + if [[ -f $tmpfile ]]; then rm -f $tmpfile fi if [[ $KEEPGOING != true ]]; then