diff --git a/script/dot.sh b/script/dot.sh index eeff80d..a29956f 100755 --- a/script/dot.sh +++ b/script/dot.sh @@ -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 }