Merge pull request #2763 from chrisys/development

Handle an empty local.list
pull/2768/head
Mark Drobnak 5 years ago committed by GitHub
commit ca2ea388b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save