fix: erase eventual temporary file in case of error exit; version bump
This commit is contained in:
@@ -72,6 +72,9 @@ 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
|
||||
rm -f $tmpfile
|
||||
fi
|
||||
if [[ $KEEPGOING != true ]]; then
|
||||
exit 255
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user