Skip to content

Commit

Permalink
change regex to test for one or more numbers, not 0 or more numbers.
Browse files Browse the repository at this point in the history
  • Loading branch information
PromoFaux committed Feb 20, 2016
1 parent 8687d25 commit b14b182
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion automated install/basic-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b14b182

Please sign in to comment.