mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
change regex to test for one or more numbers, not 0 or more numbers.
This commit is contained in:
parent
8687d25d88
commit
b14b182084
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue