mirror of
https://github.com/pi-hole/pi-hole
synced 2025-01-03 12:40:56 +00:00
Fix lint errors
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
parent
bc9b623638
commit
b372f808dd
@ -180,7 +180,7 @@ if [[ -z "${exact}" ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Get adlist file content as array
|
# Get adlist file content as array
|
||||||
if [[ -n "${blockpage}" ]]; then
|
if [[ -n "${adlist}" ]] || [[ -n "${blockpage}" ]]; then
|
||||||
# Retrieve source URLs from gravity database
|
# Retrieve source URLs from gravity database
|
||||||
mapfile -t adlists <<< "$(sqlite3 "${gravityDBfile}" "SELECT address FROM vw_adlists;" 2> /dev/null)"
|
mapfile -t adlists <<< "$(sqlite3 "${gravityDBfile}" "SELECT address FROM vw_adlists;" 2> /dev/null)"
|
||||||
fi
|
fi
|
||||||
|
@ -87,10 +87,11 @@ generate_gravity_database() {
|
|||||||
# Import domains from file and store them in the specified database table
|
# Import domains from file and store them in the specified database table
|
||||||
database_table_from_file() {
|
database_table_from_file() {
|
||||||
# Define locals
|
# Define locals
|
||||||
local table="${1}"
|
local table source backup_path backup_file
|
||||||
local source="${2}"
|
table="${1}"
|
||||||
local backup_path="${piholeDir}/migration_backup"
|
source="${2}"
|
||||||
local backup_file="${backup_path}/$(basename "${2}")"
|
backup_path="${piholeDir}/migration_backup"
|
||||||
|
backup_file="${backup_path}/$(basename "${2}")"
|
||||||
|
|
||||||
# Create database file if not present
|
# Create database file if not present
|
||||||
if [ ! -e "${gravityDBfile}" ]; then
|
if [ ! -e "${gravityDBfile}" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user