From eafb4e81a5b8e98a06b020a40ac9d05cc7dfd911 Mon Sep 17 00:00:00 2001 From: Mike Reeves Date: Mon, 14 Sep 2020 20:01:53 -0400 Subject: [PATCH] Disk Space Check Final Final --- salt/common/tools/sbin/soup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/salt/common/tools/sbin/soup b/salt/common/tools/sbin/soup index d95974958..9d4d54a93 100755 --- a/salt/common/tools/sbin/soup +++ b/salt/common/tools/sbin/soup @@ -188,8 +188,8 @@ rc2_to_rc3() { space_check() { # Check to see if there is enough space - CURRENTSPACE=$(df -BG / | grep -v Avail | awk '{print $4}') - if [ "$CURRENTSPACE" -lt "10" ]; then + 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"; clean_dockers else