Updated dev tools installer to agree to Rosetta license

Necessary to reduce an additional prompt for the user to deal with and
allow a more automated install process. This also includes better
architecture detection, instead of CPU detection, when determining
whether to install Rosetta.
This commit is contained in:
Brooke Kuhlmann
2021-02-28 08:56:19 -07:00
parent 82d50299c7
commit 6567969919

View File

@@ -1,6 +1,6 @@
#! /usr/bin/env bash
# Installs development tooling requirements.
Installs development tooling requirements.
printf "Installing Xcode CLI tools...\n"
xcode-select --install
@@ -12,6 +12,6 @@ if [[ "$xcode_response" != "y" ]]; then
exit 1
fi
if [[ -n "$(get_cpu)" ]]; then
softwareupdate --install-rosetta
if [[ "$(/usr/bin/arch)" == "arm64" ]]; then
softwareupdate --install-rosetta --agree-to-license
fi