Merge pull request #1615 from litghost/add_disk_space_checks

Add some disk space checks in happy and sad paths.
This commit is contained in:
litghost 2021-03-09 06:47:54 -08:00 committed by GitHub
commit 0ddf03b848
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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