We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1e7b7cc + ab6fcb7 commit c3b5d2aCopy full SHA for c3b5d2a
scripts/network.sh
@@ -25,7 +25,7 @@ get_ssid()
25
26
Darwin)
27
local wifi_network=$(ipconfig getsummary en0 | awk -F ' SSID : ' '/ SSID : / {print $2}')
28
- local airport=$(networksetup -getairportnetwork en0 | cut -d ':' -f 2)
+ local airport=$(networksetup -getairportnetwork en0 | cut -d ':' -f 2 | head -n 1)
29
30
if [[ $airport != "You are not associated with an AirPort network." ]]; then
31
echo "$wifi_label$airport" | sed 's/^[[:blank:]]*//g'
0 commit comments