Necessary to have consistent use of `printf` especially with formatting strings and new lines. Milestone: patch
18 lines
521 B
Bash
Executable File
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
|