File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 12
12
# │ (Launch the script without parameters or visit the project's homepage for usage info)│
13
13
# ╰──────────────────────────────────────────────────────────────────────────────────────╯
14
14
15
- ASN_VERSION=" 0.70.3 "
15
+ ASN_VERSION=" 0.70.4 "
16
16
17
17
# ╭──────────────────╮
18
18
# │ Helper functions │
@@ -1303,7 +1303,7 @@ AsnServerListener(){
1303
1303
found_asn=" N/A"
1304
1304
found_asname=" (Unknown)"
1305
1305
fi
1306
- server_country=$( echo " $found_asname " | cut -d ' , ' -f 2 | tr -d ' ' )
1306
+ server_country=$( echo " ${ found_asname##* ,} " | tr -d ' ' )
1307
1307
[[ -z " $server_country " ]] && server_country=" (Unknown)"
1308
1308
1309
1309
StatusbarMessage
@@ -2358,7 +2358,7 @@ if [ -z "$input" ]; then
2358
2358
echo -en " ${bluebg} AS Name ──>${default} ${green}${found_asname} "
2359
2359
if [ " $IS_ASN_CHILD " = true ]; then
2360
2360
# signal to the parent connhandler the correct country flag to display for this ASN
2361
- flag_icon_cc=$( echo " $found_asname " | cut -d ' , ' -f 2 | tr -d ' ' | tr ' [:upper:]' ' [:lower:]' )
2361
+ flag_icon_cc=$( echo " ${ found_asname##* ,} " | tr -d ' ' | tr ' [:upper:]' ' [:lower:]' )
2362
2362
[[ -n " $flag_icon_cc " ]] && echo -n " #COUNTRYCODE $flag_icon_cc "
2363
2363
fi
2364
2364
printf " \n"
You can’t perform that action at this time.
0 commit comments