From a95b4734170c8a401a698cd03665546f3269396e Mon Sep 17 00:00:00 2001 From: DL6ER Date: Mon, 5 Aug 2019 20:56:01 +0200 Subject: [PATCH] Rearranage if statements to ensure the proper output is shown for wildcard-style filters. Signed-off-by: DL6ER --- advanced/Scripts/list.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/advanced/Scripts/list.sh b/advanced/Scripts/list.sh index f0cf4701..31822c9a 100755 --- a/advanced/Scripts/list.sh +++ b/advanced/Scripts/list.sh @@ -32,18 +32,18 @@ helpFunc() { if [[ "${listType}" == "whitelist" ]]; then param="w" type="whitelist" - elif [[ "${listType}" == "regex_blacklist" ]]; then - param="-regex" - type="regex blacklist filter" elif [[ "${listType}" == "regex_blacklist" && "${wildcard}" == true ]]; then param="-wild" type="wildcard blacklist" - elif [[ "${listType}" == "regex_whitelist" ]]; then - param="-whiteregex" - type="regex whitelist filter" + elif [[ "${listType}" == "regex_blacklist" ]]; then + param="-regex" + type="regex blacklist filter" elif [[ "${listType}" == "regex_whitelist" && "${wildcard}" == true ]]; then param="-whitewild" type="wildcard whitelist" + elif [[ "${listType}" == "regex_whitelist" ]]; then + param="-whiteregex" + type="regex whitelist filter" else param="b" type="blacklist"