Skip to content

Commit

Permalink
nicer ?
Browse files Browse the repository at this point in the history
  • Loading branch information
pnodet committed Aug 22, 2019
1 parent 26dd750 commit 73ed406
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,29 @@ fi
# ###########################################################
# Install non-brew various tools (PRE-BREW Installs)
# ###########################################################

bot "ensuring build/install tools are available"
xcode-select --install 2>&1 > /dev/null
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer 2>&1 > /dev/null
sudo xcodebuild -license accept 2>&1 > /dev/null
if ! xcode-select --print-path &> /dev/null; then

# Prompt user to install the XCode Command Line Tools
xcode-select --install &> /dev/null

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

# Wait until the XCode Command Line Tools are installed
until xcode-select --print-path &> /dev/null; do
sleep 5
done

print_result $? ' XCode Command Line Tools Installed'

# Prompt user to agree to the terms of the Xcode license
# https://github.com/alrra/dotfiles/issues/10

sudo xcodebuild -license
print_result $? 'Agree with the XCode Command Line Tools licence'

fi

# ###########################################################
# install homebrew (CLI Packages)
Expand Down

0 comments on commit 73ed406

Please sign in to comment.