should get ssid working

This commit is contained in:
Dane Williams 2020-03-15 14:24:45 -07:00
parent f04a5d8b82
commit 91c9952bd4

View file

@ -8,7 +8,7 @@
get_ssid()
{
if /System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport -I | awk -F: '/ SSID/{print $2}' &>/dev/null
/System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport -I | awk -F: '/ SSID/{print $2}'
echo $(/System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport -I | awk -F: '/ SSID/{print $2}')
else
echo 'Ethernet'
fi