mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
Fix lint errors
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
parent
bc9b623638
commit
b372f808dd
2 changed files with 6 additions and 5 deletions
|
@ -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…
Reference in a new issue