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
|
#! /usr/bin/env bash
|
||||||
|
|
||||||
# Installs development tooling requirements.
|
Installs development tooling requirements.
|
||||||
|
|
||||||
printf "Installing Xcode CLI tools...\n"
|
printf "Installing Xcode CLI tools...\n"
|
||||||
xcode-select --install
|
xcode-select --install
|
||||||
@@ -12,6 +12,6 @@ if [[ "$xcode_response" != "y" ]]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -n "$(get_cpu)" ]]; then
|
if [[ "$(/usr/bin/arch)" == "arm64" ]]; then
|
||||||
softwareupdate --install-rosetta
|
softwareupdate --install-rosetta --agree-to-license
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user