Merge pull request #237 from djfpaagman/patch-1
This commit is contained in:
commit
77bad73881
1 changed files with 2 additions and 2 deletions
|
@ -18,8 +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'
|
||||
if /System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport -I | grep -E ' SSID' | cut -d ':' -f 2 | sed 's/^[[:blank:]]*//g' &> /dev/null; then
|
||||
echo "$(/System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport -I | grep -E ' SSID' | cut -d ':' -f 2)" | sed 's/^[[:blank:]]*//g'
|
||||
else
|
||||
echo 'Ethernet'
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue