Skip to content

Commit

Permalink
Only on Darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
sj26 committed Aug 11, 2016
1 parent 4c04b49 commit 52e3fe7
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions move-in
Expand Up @@ -2,16 +2,18 @@

pushd $HOME

if ! xcode-select --print-path > /dev/null; then
echo "Requesting install for Command Line Tools, press ENTER to continue."
/usr/bin/xcode-select --install
read
fi

if git --version | grep -vq license; then
echo "You need to accept the Xcode license, press ENTER to continue."
read
sudo xcodebuild -license
if [[ "$(uname -s)" = "Darwin" ]]; then
if ! xcode-select --print-path > /dev/null; then
echo "Requesting install for Command Line Tools, press ENTER to continue."
/usr/bin/xcode-select --install
read
fi

if git --version | grep -vq license; then
echo "You need to accept the Xcode license, press ENTER to continue."
read
sudo xcodebuild -license
fi
fi

if [[ -e $HOME/.home ]]; then
Expand Down

0 comments on commit 52e3fe7

Please sign in to comment.