Skip to content

Commit

Permalink
Merge pull request #29 from zainmiku/patch-2
Browse files Browse the repository at this point in the history
处理wifi名称中有空格的情况
  • Loading branch information
yaocccc authored Jul 2, 2023
2 parents 0c8a49f + 3a20497 commit 231688a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DEF/statusbar/packages/wifi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ fi

update() {
wifi_icon=""
wifi_text=$(nmcli | grep "$wifi_grep_keyword" | sed "s/$wifi_grep_keyword//" | awk '{print $2}' | paste -d " " -s)
wifi_text=$(nmcli | grep "$wifi_grep_keyword" | awk -F "$wifi_grep_keyword" '{print $2}')
[ "$wifi_text" = "" ] && wifi_text=$wifi_disconnected

icon=" $wifi_icon "
Expand Down

0 comments on commit 231688a

Please sign in to comment.