Replaced if [ $? -eq 0 ]; then with if softwareupdate --install-rosetta --agree-to-license; then in the check_and_install_rosetta function to check the exit status directly.
Other changes are basically white spaces handled by Jetbrains IntelliJ Idea in there
Replaced
if [ $? -eq 0 ]; then
withif softwareupdate --install-rosetta --agree-to-license; then
in thecheck_and_install_rosetta
function to check the exit status directly.Other changes are basically white spaces handled by Jetbrains IntelliJ Idea in there
This is a followup PR on top of #76