Helpful for first-time installers not familar with XCode. Also reduces confusion with license window which always seems to appear behind current window.
25 lines
783 B
Bash
Executable File
25 lines
783 B
Bash
Executable File
#! /usr/bin/env bash
|
|
|
|
# DESCRIPTION
|
|
# Installs development tooling requirements.
|
|
|
|
printf "Installing Xcode CLI tools...\n"
|
|
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 "ERROR: Xcode CLI tools must be installed before proceeding.\n"
|
|
exit 1
|
|
fi
|
|
|
|
printf "Installing $JAVA_LABEL...\n"
|
|
printf "%s\n" "You must manually accept the license and download the $JAVA_LABEL: $JAVA_DOWNLOAD_URL."
|
|
open $JAVA_DOWNLOAD_URL
|
|
|
|
read -p "Have you completed the $JAVA_LABEL install (y/n)? " java_response
|
|
if [[ "$java_response" != "y" ]]; then
|
|
printf "ERROR: $JAVA_LABEL must be installed before proceeding.\n"
|
|
exit 1
|
|
fi
|