Use double brackets for the test.
This commit is contained in:
@ -19,7 +19,7 @@ sources=('https://adaway.org/hosts.txt'
|
|||||||
adList=/etc/hosts
|
adList=/etc/hosts
|
||||||
origin=/etc/pihole
|
origin=/etc/pihole
|
||||||
piholeDir=/etc/pihole
|
piholeDir=/etc/pihole
|
||||||
if [ -f $piholeDir/pihole.conf ]; then
|
if [[ -f $piholeDir/pihole.conf ]]; then
|
||||||
. $piholeDir/pihole.conf
|
. $piholeDir/pihole.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user