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:
DL6ER 2019-08-05 20:56:01 +02:00
parent 6f58d58cae
commit a95b473417
No known key found for this signature in database
GPG key ID: FB60471F0575164A

View file

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