🩹 Agree to the Xcode license

This commit is contained in:
Marley Rae 2024-01-23 09:14:13 -08:00
parent 1ac3c64dff
commit a561a55133

View file

@ -133,14 +133,18 @@ are_xcode_cli_tools_installed()
install_xcode_cli_toools() install_xcode_cli_toools()
{ {
if [[ "$(uname)" == "Darwin" ]]; then
print_title "Xcode" print_title "Xcode"
if [[ "$(uname)" == "Darwin" ]]; then
xcode-select --install &> /dev/null xcode-select --install &> /dev/null
execute \ execute \
"until are_xcode_cli_tools_installed; do sleep 5; done" \ "until are_xcode_cli_tools_installed; do sleep 5; done" \
"Install Xcode Command Line Tools" "Install Xcode Command Line Tools"
sudo xcodebuild -license accept &> /dev/null
print_result $? "Agree to the terms of the Xcode license"
fi fi
} }