Merge pull request #2763 from chrisys/development

Handle an empty local.list
This commit is contained in:
Mark Drobnak
2019-05-27 16:06:25 -04:00
committed by GitHub

View File

@ -184,8 +184,8 @@ migrate_to_database() {
gravity_CheckDNSResolutionAvailable() {
local lookupDomain="pi.hole"
# Determine if $localList does not exist
if [[ ! -e "${localList}" ]]; then
# Determine if $localList does not exist, and ensure it is not empty
if [[ ! -e "${localList}" ]] || [[ -s "${localList}" ]]; then
lookupDomain="raw.githubusercontent.com"
fi