kevva / wifi-name

Get current wifi name

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Doesn't work on non-english Ubuntu distros

msn0 opened this issue · comments

Command nmcli is localized on my Ubuntu 14.04. Here is my output

$ nmcli -t -f active,ssid dev wifi
tak:'FRITZ!Box Fon WLAN 7360 SL'
nie:'HTC Portable Hotspot'

In this case regex /^\s*yes:(.+)\s*$/gm doesn't match. Using iwgetid -r might be an alternative solution.