unset BACKUPNINJA_DEBUG before exit

This commit is contained in:
Jerome Charaoui 2021-01-24 14:20:20 -05:00
parent 25c3a9f421
commit 61d53834fa
2 changed files with 4 additions and 0 deletions

View File

@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- [core] raise error if mail isn't found in $PATH and reportemail = yes
- [core] unset BACKUPNINJA_DEBUG before exit
### Fixed

View File

@ -672,6 +672,9 @@ if [ -n "$reporthost" ]; then
fi
fi
# unset exported envvars
unset BACKUPNINJA_DEBUG
# return exit code
[ $halts == 0 ] || exit 2
[ $fatals == 0 ] || exit 2