mirror of
https://github.com/pi-hole/pi-hole
synced 2024-12-22 23:08:07 +00:00
Use " " to protect parameter substitution
Signed-off-by: Ludovic Rousseau <ludovic.rousseau@free.fr>
This commit is contained in:
parent
b7891f92a5
commit
47bbea9ba7
@ -10,9 +10,9 @@
|
|||||||
|
|
||||||
# Globals
|
# Globals
|
||||||
basename=pihole
|
basename=pihole
|
||||||
piholeDir=/etc/${basename}
|
piholeDir=/etc/"${basename}"
|
||||||
whitelist=${piholeDir}/whitelist.txt
|
whitelist="${piholeDir}"/whitelist.txt
|
||||||
blacklist=${piholeDir}/blacklist.txt
|
blacklist="${piholeDir}"/blacklist.txt
|
||||||
readonly wildcardlist="/etc/dnsmasq.d/03-pihole-wildcard.conf"
|
readonly wildcardlist="/etc/dnsmasq.d/03-pihole-wildcard.conf"
|
||||||
reload=false
|
reload=false
|
||||||
addmode=true
|
addmode=true
|
||||||
@ -80,13 +80,13 @@ HandleOther() {
|
|||||||
|
|
||||||
PoplistFile() {
|
PoplistFile() {
|
||||||
# Check whitelist file exists, and if not, create it
|
# Check whitelist file exists, and if not, create it
|
||||||
if [[ ! -f ${whitelist} ]]; then
|
if [[ ! -f "${whitelist}" ]]; then
|
||||||
touch ${whitelist}
|
touch "${whitelist}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check blacklist file exists, and if not, create it
|
# Check blacklist file exists, and if not, create it
|
||||||
if [[ ! -f ${blacklist} ]]; then
|
if [[ ! -f "${blacklist}" ]]; then
|
||||||
touch ${blacklist}
|
touch "${blacklist}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for dom in "${domList[@]}"; do
|
for dom in "${domList[@]}"; do
|
||||||
|
Loading…
Reference in New Issue
Block a user