mirror of
https://github.com/pi-hole/pi-hole
synced 2024-11-18 14:18:15 +00:00
Fix handling of wildcard help text
This commit is contained in:
parent
2e74219ff9
commit
ae30c285a2
@ -31,13 +31,16 @@ helpFunc() {
|
|||||||
if [[ ${listMain} == ${whitelist} ]]; then
|
if [[ ${listMain} == ${whitelist} ]]; then
|
||||||
letter="w"
|
letter="w"
|
||||||
word="white"
|
word="white"
|
||||||
|
elif [[ ${listMain} == ${wildcardlist} ]]; then
|
||||||
|
letter="wild"
|
||||||
|
word="wildcard"
|
||||||
else
|
else
|
||||||
letter="b"
|
letter="b"
|
||||||
word="black"
|
word="black"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cat << EOM
|
cat << EOM
|
||||||
::: Immediately ${word}lists one or more domains in the hosts file
|
::: Immediately add one or more domains to the ${word}list
|
||||||
:::
|
:::
|
||||||
::: Usage: pihole -${letter} domain1 [domain2 ...]
|
::: Usage: pihole -${letter} domain1 [domain2 ...]
|
||||||
:::
|
:::
|
||||||
@ -48,7 +51,7 @@ helpFunc() {
|
|||||||
::: -h, --help Show this help dialog
|
::: -h, --help Show this help dialog
|
||||||
::: -l, --list Display your ${word}listed domains
|
::: -l, --list Display your ${word}listed domains
|
||||||
EOM
|
EOM
|
||||||
if [[ "${letter}" == "b" ]]; then
|
if [[ "${letter}" == "-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 New Issue
Block a user