-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prefer networksetup and skip root runs #30
base: master
Are you sure you want to change the base?
Conversation
Turns out this breaks support for SSIDs with spaces in the name. It only matches the final " lastword". |
fix for SSIDs with spaces networksetup -listallhardwareports | awk '/Wi-Fi/{getline; print $2}' | xargs networksetup -getairportnetwork | sed 's/[^:]*: //' |
That worked for me. Thanks! |
Unfortunately this is broken as of MacOS 15.0. And I haven't been able to find any way to fix it without sudo, as every non-sudo command I've found lists the SSID as "<redacted>" |
Try |
Primarily I wanted to incorporate @amartignoni's simplification through
networksetup
over use of a private API and implement a fix for issue #28 so that I had a one stop branch that would do what I needed.This covers both scenarios.
Closes #29