🩹 Agree to the Xcode license
This commit is contained in:
parent
1ac3c64dff
commit
a561a55133
1 changed files with 6 additions and 2 deletions
|
@ -133,14 +133,18 @@ are_xcode_cli_tools_installed()
|
|||
|
||||
install_xcode_cli_toools()
|
||||
{
|
||||
print_title "Xcode"
|
||||
|
||||
if [[ "$(uname)" == "Darwin" ]]; then
|
||||
|
||||
print_title "Xcode"
|
||||
|
||||
xcode-select --install &> /dev/null
|
||||
|
||||
execute \
|
||||
"until are_xcode_cli_tools_installed; do sleep 5; done" \
|
||||
"Install Xcode Command Line Tools"
|
||||
|
||||
sudo xcodebuild -license accept &> /dev/null
|
||||
print_result $? "Agree to the terms of the Xcode license"
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue