mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 10:43:55 +00:00
Replace misleading letter variable
This commit is contained in:
parent
9a475cc010
commit
bb7a7d94ef
1 changed files with 5 additions and 5 deletions
|
@ -29,20 +29,20 @@ listAlt=""
|
||||||
helpFunc() {
|
helpFunc() {
|
||||||
|
|
||||||
if [[ ${listMain} == ${whitelist} ]]; then
|
if [[ ${listMain} == ${whitelist} ]]; then
|
||||||
letter="w"
|
param="w"
|
||||||
word="white"
|
word="white"
|
||||||
elif [[ ${listMain} == ${wildcardlist} ]]; then
|
elif [[ ${listMain} == ${wildcardlist} ]]; then
|
||||||
letter="wild"
|
param="wild"
|
||||||
word="wildcard"
|
word="wildcard"
|
||||||
else
|
else
|
||||||
letter="b"
|
param="b"
|
||||||
word="black"
|
word="black"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cat << EOM
|
cat << EOM
|
||||||
::: Immediately add one or more domains to the ${word}list
|
::: Immediately add one or more domains to the ${word}list
|
||||||
:::
|
:::
|
||||||
::: Usage: pihole -${letter} domain1 [domain2 ...]
|
::: Usage: pihole -${param} domain1 [domain2 ...]
|
||||||
:::
|
:::
|
||||||
::: Options:
|
::: Options:
|
||||||
::: -d, --delmode Remove domains from the ${word}list
|
::: -d, --delmode Remove domains from the ${word}list
|
||||||
|
@ -51,7 +51,7 @@ helpFunc() {
|
||||||
::: -h, --help Show this help dialog
|
::: -h, --help Show this help dialog
|
||||||
::: -l, --list Display domains on the ${word}list
|
::: -l, --list Display domains on the ${word}list
|
||||||
EOM
|
EOM
|
||||||
if [[ "${letter}" == "wild" ]]; then
|
if [[ "${param}" == "wild" ]]; then
|
||||||
echo "::: -wild, --wildcard Add wildcard entry (only blacklist)"
|
echo "::: -wild, --wildcard Add wildcard entry (only blacklist)"
|
||||||
fi
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in a new issue