Defer exiting for db-check error until after cleanup.

Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
This commit is contained in:
Keith Rothman 2021-03-12 08:52:17 -08:00
parent d3e19a375d
commit 1619b12056
1 changed files with 5 additions and 0 deletions

View File

@ -169,7 +169,10 @@ echo "----------------------------------------"
echo "----------------------------------------" echo "----------------------------------------"
# Check the database and fail if it is broken. # Check the database and fail if it is broken.
set -x +e
make db-check-${XRAY_SETTINGS} make db-check-${XRAY_SETTINGS}
CHECK_RET=$?
set +x -e
echo echo
echo "========================================" echo "========================================"
@ -200,3 +203,5 @@ echo "========================================"
echo " Final disk space after cleanup" echo " Final disk space after cleanup"
echo "----------------------------------------" echo "----------------------------------------"
du -sh du -sh
exit $CHECK_RET