Fix duplicate country entries
This commit is contained in:
@@ -1534,6 +1534,8 @@ process_batch() {
|
|||||||
if [ -z "$country" ]; then
|
if [ -z "$country" ]; then
|
||||||
country=$(geo_lookup "$ip")
|
country=$(geo_lookup "$ip")
|
||||||
fi
|
fi
|
||||||
|
# Strip country code prefix (e.g. "US, United States" -> "United States")
|
||||||
|
country=$(echo "$country" | sed 's/^[A-Z][A-Z], //')
|
||||||
# Normalize
|
# Normalize
|
||||||
case "$country" in
|
case "$country" in
|
||||||
*Iran*) country="Iran - #FreeIran" ;;
|
*Iran*) country="Iran - #FreeIran" ;;
|
||||||
|
|||||||
Reference in New Issue
Block a user