Exclude non list stuff
This commit is contained in:
parent
fccbbfaf4e
commit
1b8bdaccfe
|
@ -62,9 +62,11 @@ function remove_user_from_mailing_list {
|
||||||
list_name=()
|
list_name=()
|
||||||
while read -r listname; do
|
while read -r listname; do
|
||||||
i=$((i+1))
|
i=$((i+1))
|
||||||
W+=($i "$listname")
|
if [[ "$listname" != *']'* && "$listname" != *'['* ]]; then
|
||||||
list_name+=("$listname")
|
W+=($i "$listname")
|
||||||
echo $listname
|
list_name+=("$listname")
|
||||||
|
echo $listname
|
||||||
|
fi
|
||||||
done <<< "$USER_MAILING_LISTS"
|
done <<< "$USER_MAILING_LISTS"
|
||||||
|
|
||||||
i=$((i+1))
|
i=$((i+1))
|
||||||
|
|
Loading…
Reference in New Issue