mirror of https://github.com/openXC7/prjxray.git
Merge pull request #1619 from litghost/defer_db_check_return
Defer exiting for db-check error until after cleanup.
This commit is contained in:
commit
9dd35a33ab
|
|
@ -169,7 +169,10 @@ echo "----------------------------------------"
|
|||
echo "----------------------------------------"
|
||||
|
||||
# Check the database and fail if it is broken.
|
||||
set -x +e
|
||||
make db-check-${XRAY_SETTINGS}
|
||||
CHECK_RET=$?
|
||||
set +x -e
|
||||
|
||||
echo
|
||||
echo "========================================"
|
||||
|
|
@ -200,3 +203,5 @@ echo "========================================"
|
|||
echo " Final disk space after cleanup"
|
||||
echo "----------------------------------------"
|
||||
du -sh
|
||||
|
||||
exit $CHECK_RET
|
||||
|
|
|
|||
Loading…
Reference in New Issue