🩹 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()
|
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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue