mirror of
https://github.com/TECHNOFAB11/tmux2k.git
synced 2025-12-12 08:00:08 +01:00
fix: macos ssid command
This commit is contained in:
parent
6c234a08fd
commit
0745a1bea8
1 changed files with 2 additions and 2 deletions
|
|
@ -16,8 +16,8 @@ get_ssid() {
|
||||||
;;
|
;;
|
||||||
|
|
||||||
Darwin)
|
Darwin)
|
||||||
if /System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport -I | grep -E ' SSID' | cut -d ':' -f 2 | sed 's/ ^*//g' &>/dev/null; then
|
SSID=$(networksetup -getairportnetwork en1 | awk -F ": " '{print $2}')
|
||||||
SSID="$(/System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport -I | grep -E ' SSID' | cut -d ':' -f 2)"
|
if [ -n "$SSID" ]; then
|
||||||
printf '%s' " $SSID"
|
printf '%s' " $SSID"
|
||||||
else
|
else
|
||||||
echo ' Ethernet'
|
echo ' Ethernet'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue