Fix lint errors

Signed-off-by: DL6ER <dl6er@dl6er.de>
pull/2611/head
DL6ER 5 years ago
parent bc9b623638
commit b372f808dd
No known key found for this signature in database
GPG Key ID: 00135ACBD90B28DD

@ -180,7 +180,7 @@ if [[ -z "${exact}" ]]; then
fi
# Get adlist file content as array
if [[ -n "${blockpage}" ]]; then
if [[ -n "${adlist}" ]] || [[ -n "${blockpage}" ]]; then
# Retrieve source URLs from gravity database
mapfile -t adlists <<< "$(sqlite3 "${gravityDBfile}" "SELECT address FROM vw_adlists;" 2> /dev/null)"
fi

@ -87,10 +87,11 @@ generate_gravity_database() {
# Import domains from file and store them in the specified database table
database_table_from_file() {
# Define locals
local table="${1}"
local source="${2}"
local backup_path="${piholeDir}/migration_backup"
local backup_file="${backup_path}/$(basename "${2}")"
local table source backup_path backup_file
table="${1}"
source="${2}"
backup_path="${piholeDir}/migration_backup"
backup_file="${backup_path}/$(basename "${2}")"
# Create database file if not present
if [ ! -e "${gravityDBfile}" ]; then

Loading…
Cancel
Save