Disk Space Check Final Final

This commit is contained in:
Mike Reeves
2020-09-14 20:11:04 -04:00
parent 9ef2b93586
commit 62a8e676d9

View File

@@ -190,7 +190,7 @@ space_check() {
# Check to see if there is enough space
CURRENTSPACE=$(df -BG / | grep -v Avail | awk '{print $4}' | sed 's/.$//')
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";
echo "You are low on disk space. Upgrade will try and clean up space.";
clean_dockers
else
echo "Plenty of space for upgrading"