From b14b182084e571fa72e44f9b687bf4da0040ccff Mon Sep 17 00:00:00 2001 From: Promofaux Date: Sat, 20 Feb 2016 15:17:57 +0000 Subject: [PATCH] change regex to test for one or more numbers, not 0 or more numbers. --- automated install/basic-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index 18531f27..b8834951 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -121,7 +121,7 @@ verifyFreeDiskSpace() { requiredFreeBytes=25600 existingFreeBytes=`df -lk / 2>&1 | awk '{print $4}' | head -2 | tail -1` - if ! [[ "$existingFreeBytes" =~ ^([0-9])*$ ]]; then + if ! [[ "$existingFreeBytes" =~ ^([0-9])+$ ]]; then existingFreeBytes=`df -lk /dev 2>&1 | awk '{print $4}' | head -2 | tail -1` fi