From 65679699194775234fa5316c756c740ac0e3e630 Mon Sep 17 00:00:00 2001 From: Brooke Kuhlmann Date: Sun, 28 Feb 2021 08:56:19 -0700 Subject: [PATCH] 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. --- bin/install_dev_tools | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/install_dev_tools b/bin/install_dev_tools index b17b655..5b0c8fe 100755 --- a/bin/install_dev_tools +++ b/bin/install_dev_tools @@ -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