mirror of
https://github.com/TECHNOFAB11/tmux2k.git
synced 2025-12-11 23:50:08 +01:00
fix: macos network display
This commit is contained in:
parent
be82e9fada
commit
e37451256c
1 changed files with 2 additions and 1 deletions
|
|
@ -18,7 +18,8 @@ get_ssid() {
|
|||
|
||||
Darwin)
|
||||
if /System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport -I | grep -E ' SSID' | cut -d ':' -f 2 | sed 's/ ^*//g' &>/dev/null; then
|
||||
echo " $(/System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport -I | grep -E ' SSID' | cut -d ':' -f 2)" | sed 's/ ^*//g'
|
||||
SSID="$(/System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport -I | grep -E ' SSID' | cut -d ':' -f 2)"
|
||||
printf '%s' " $SSID"
|
||||
else
|
||||
echo ' Ethernet'
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue