microsoft / shell-intune-samples

Sample shell scripts for Intune admins.
MIT License
670 stars 222 forks source link

installRosetta2.sh is reinstalling rosetta even if it is already installed #42

Closed c-orlik closed 2 years ago

c-orlik commented 2 years ago

Line 74 does not work anymore on Monterey (at least 12.2.1, maybe on older versions as well) since the plist file is not existing anymore. Better check for installed rosetta would be to check if the oahd deamon is running: if [ ! pgrep oahd ]; then

theneiljohnson commented 2 years ago

Thanks for picking this up. I updated all of the other samples a little while back but forgot this one!