Last active
April 20, 2017 19:34
-
-
Save maxkorp/c5d650a80f2ea9135ddace1c40d9e352 to your computer and use it in GitHub Desktop.
Unattended install of xcode-cli tools
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xcode-select --install | |
sleep 1 | |
osascript <<EOD | |
tell application "System Events" | |
tell process "Install Command Line Developer Tools" | |
keystroke return | |
click button "Agree" of window "License Agreement" | |
delay 1 | |
keystroke return | |
repeat | |
delay 5 | |
if exists (button "Done" of window 1) then | |
click button "Done" of window 1 | |
exit repeat | |
end if | |
end repeat | |
end tell | |
end tell | |
EOD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment