Skip to content

Conversation

lysandermawby
Copy link

In recent macOS versions (14.4+), the airport utility still exists but returns an empty output. This causes the script to fail with "ERROR: Could not retrieve current SSID. Are you connected?".

The system_profiler SPAirPortDataType command returns necessary data to perform the same function in more modern macOS versions.

This version trys to airport utility first to retain backwards compatability. If it is found to returns empty, the system_profiler is used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant