rtrouton / rtrouton_scripts

Scripts to share
MIT License
1.3k stars 489 forks source link

User context launching logic needs update for Big Sur #69

Open smashism opened 3 years ago

smashism commented 3 years ago

Heya, here's an example: https://github.com/rtrouton/rtrouton_scripts/blob/2e0d1196f6015f0dc0c0e19264e343f56a8a6fcd/rtrouton_scripts/Casper_Scripts/open_website_via_self_service/open_website_via_self_service.sh#L52

As-is this won't work on Big Sur now that it has decided to be 11.0 and not 10.16. We've updated the script internally to work with the following modification: if [[ "$osvers_major" -eq 11 ]] || [[ "$osvers_major" -eq 10 && "$osvers_minor" -ge 10 ]]; then

I don't seem to be able to make a pull request for this but in case others are still using this script it might be helpful to update it. I think there are a few others that will need something similar.

Cheers!

smashism commented 3 years ago

Looks like https://github.com/rtrouton/rtrouton_scripts/blob/master/rtrouton_scripts/Casper_Scripts/open_macappstore_address_via_self_service/open_macappstore_address_via_self_service.sh needs the same TLC.

There may be others in the repo too that need a similar update; we keep stumbling upon them internally ourselves.

Thanks!