aaa_error.sh: fix: don't erase tmpfile if we don't exit
This commit is contained in:
@@ -72,10 +72,10 @@ trap "error ${LINENO}; backtrace; err_exit" ERR
|
||||
# Exit program in case of error unless keepgoing is set to true
|
||||
function err_exit
|
||||
{
|
||||
if [[ -f $tmpfile ]]; then
|
||||
rm -f $tmpfile
|
||||
fi
|
||||
if [[ $KEEPGOING != true ]]; then
|
||||
if [[ -f $tmpfile ]]; then
|
||||
rm -f $tmpfile
|
||||
fi
|
||||
exit 255
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user