Files
mac_os/bin/install_dev_tools
Brooke Kuhlmann 76b193dede Refactored bin script printing
Necessary to have consistent use of `printf` especially with formatting strings and new lines.

Milestone: patch
2024-02-25 08:41:48 -07:00

18 lines
521 B
Bash
Executable File

#! /usr/bin/env bash
# Installs development tooling requirements.
printf "%s\n" "Installing Xcode CLI tools..."
xcode-select --install
printf "%s\n" "💡 ALT+TAB to view and accept Xcode license window."
read -p "Have you completed the Xcode CLI tools install (y/n)? " xcode_response
if [[ "$xcode_response" != "y" ]]; then
printf "%s\n" "ERROR: Xcode CLI tools must be installed before proceeding."
exit 1
fi
if [[ "$(/usr/bin/arch)" == "arm64" ]]; then
softwareupdate --install-rosetta --agree-to-license
fi