Add some disk space checks in happy and sad paths.

Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
This commit is contained in:
Keith Rothman 2021-03-08 13:05:58 -08:00
parent aef20ce6dc
commit ebc66ac886
1 changed files with 11 additions and 0 deletions

View File

@ -65,6 +65,12 @@ echo "----------------------------------------"
echo "A failure occurred during Database build."
echo "----------------------------------------"
rm $tmp
echo "========================================"
echo " Disk space in failure path"
echo "----------------------------------------"
du -sh
exit $DATABASE_RET
fi
)
@ -188,3 +194,8 @@ echo "----------------------------------------"
make clean_piplists
)
echo "----------------------------------------"
echo "========================================"
echo " Final disk space after cleanup"
echo "----------------------------------------"
du -sh