Skip to content

Commit b1ee77e

Browse files
committed
mnf: add missing array rebuild from regexp
1 parent 1fb9d1e commit b1ee77e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mnf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,10 @@ up() {
166166
fi
167167
done
168168

169+
# Turn into regex.
170+
country_code="$(tr ',' '|' <<<"$INCLUDE_COUNTRY_CODES")"
171+
readarray -t MULLVAD_RELAYS < <(printf '%s\n' "${MULLVAD_RELAYS[@]}" | grep -E "^$country_code")
172+
169173
# Exclude countries
170174
else
171175
# If EXCLUDE_COUNTRY_CODES is non-null

0 commit comments

Comments
 (0)