Disk Space Check Final Final

This commit is contained in:
Mike Reeves
2020-09-14 20:09:53 -04:00
parent eafb4e81a5
commit 9ef2b93586

View File

@@ -189,7 +189,7 @@ rc2_to_rc3() {
space_check() { space_check() {
# Check to see if there is enough space # Check to see if there is enough space
CURRENTSPACE=$(df -BG / | grep -v Avail | awk '{print $4}' | sed 's/.$//') CURRENTSPACE=$(df -BG / | grep -v Avail | awk '{print $4}' | sed 's/.$//')
if [ "$CURRENTSPACE" -lt 10 ]; then if [ "$CURRENTSPACE" -lt "10" ]; then
read -rsn1 -p"You are low on disk space. Upgrade will try and clean up space. Press any key to continue or Ctrl+c to exit"; read -rsn1 -p"You are low on disk space. Upgrade will try and clean up space. Press any key to continue or Ctrl+c to exit";
clean_dockers clean_dockers
else else