mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-25 06:10:20 +00:00
Rearranage if statements to ensure the proper output is shown for wildcard-style filters.
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
parent
6f58d58cae
commit
a95b473417
1 changed files with 6 additions and 6 deletions
|
@ -32,18 +32,18 @@ helpFunc() {
|
||||||
if [[ "${listType}" == "whitelist" ]]; then
|
if [[ "${listType}" == "whitelist" ]]; then
|
||||||
param="w"
|
param="w"
|
||||||
type="whitelist"
|
type="whitelist"
|
||||||
elif [[ "${listType}" == "regex_blacklist" ]]; then
|
|
||||||
param="-regex"
|
|
||||||
type="regex blacklist filter"
|
|
||||||
elif [[ "${listType}" == "regex_blacklist" && "${wildcard}" == true ]]; then
|
elif [[ "${listType}" == "regex_blacklist" && "${wildcard}" == true ]]; then
|
||||||
param="-wild"
|
param="-wild"
|
||||||
type="wildcard blacklist"
|
type="wildcard blacklist"
|
||||||
elif [[ "${listType}" == "regex_whitelist" ]]; then
|
elif [[ "${listType}" == "regex_blacklist" ]]; then
|
||||||
param="-whiteregex"
|
param="-regex"
|
||||||
type="regex whitelist filter"
|
type="regex blacklist filter"
|
||||||
elif [[ "${listType}" == "regex_whitelist" && "${wildcard}" == true ]]; then
|
elif [[ "${listType}" == "regex_whitelist" && "${wildcard}" == true ]]; then
|
||||||
param="-whitewild"
|
param="-whitewild"
|
||||||
type="wildcard whitelist"
|
type="wildcard whitelist"
|
||||||
|
elif [[ "${listType}" == "regex_whitelist" ]]; then
|
||||||
|
param="-whiteregex"
|
||||||
|
type="regex whitelist filter"
|
||||||
else
|
else
|
||||||
param="b"
|
param="b"
|
||||||
type="blacklist"
|
type="blacklist"
|
||||||
|
|
Loading…
Reference in a new issue