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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user