Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add brew fund #225

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
bootstrap.sh: Wait for CommandLine Tools to be installed
  • Loading branch information
trinitronx committed Jul 9, 2024
commit 797dfb3cb4ed0722bd7b55b68220a7b825ec80a3
8 changes: 7 additions & 1 deletion bootstrap-scripts/bootstrap.sh
Original file line number Diff line number Diff line change
@@ -381,7 +381,10 @@ if [[ "$TRY_XCI_OSASCRIPT_FIRST" == '1' ]]; then
# Source: https://web.archive.org/web/20211210020829/https://techviewleo.com/install-xcode-command-line-tools-macos/
if [ ! -d /Library/Developer/CommandLineTools ]; then
xcode-select --install
sleep 1
# Wait for CLT Installer App starts & grab PID
while ! clt_pid=$(pgrep -f 'Install Command Line Developer Tools.app' 2>/dev/null) ; do
sleep 1
done
osascript <<-EOD
tell application "System Events"
tell process "Install Command Line Developer Tools"
@@ -390,6 +393,9 @@ if [[ "$TRY_XCI_OSASCRIPT_FIRST" == '1' ]]; then
end tell
end tell
EOD
# Wait for CLT to be fully installed before continuing
# wait for non-child PID (Darwin)
lsof -p $clt_pid +r 1 &>/dev/null
else
echo "INFO: Found /Library/Developer/CommandLineTools already existing. skipping..."
fi