Updated disk size check to 7G.

This commit is contained in:
Storm Dragon 2024-11-03 02:18:59 -05:00
parent 46faab708b
commit 9cc539a6e4

View File

@ -69,7 +69,7 @@ fi
diskSource="$(df --output='source' / | tail -1)" diskSource="$(df --output='source' / | tail -1)"
diskSize="$(df -h --output='size' / | tail -1 | tr -cd '[:digit:].')" diskSize="$(df -h --output='size' / | tail -1 | tr -cd '[:digit:].')"
diskSize=${diskSize%.*} diskSize=${diskSize%.*}
if [[ $diskSize -le 5 ]]; then if [[ $diskSize -le 7 ]]; then
echo "$diskSource is only $diskSize gigs, which means it probably needs to be resized. Would you like to do this now?" echo "$diskSource is only $diskSize gigs, which means it probably needs to be resized. Would you like to do this now?"
echo "Press y for yes or n for no followed by enter." echo "Press y for yes or n for no followed by enter."
read -r continue read -r continue