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 "----------------------------------------"
|
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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue