1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-12-22 23:08:07 +00:00

Fix handling of wildcard help text

This commit is contained in:
Markus Napp 2017-03-12 15:45:11 +01:00
parent 2e74219ff9
commit ae30c285a2

View File

@ -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