This repository was archived by the owner on Dec 2, 2020. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,18 +7,19 @@ if [ "$0" = "/tmp/install-boxen" ]; then
77fi
88
99set +e
10- OSX_VERSION_CHECK =`sw_vers | grep ProductVersion | cut -f 2 -d ':' | egrep '10\.8|10\.9 '`
10+ OSX_VERSION =`sw_vers | grep ProductVersion | cut -f 2 -d ':' | awk ' { print $1; } '`
1111
12- if [ $? != 0 ] ; then
12+ if ! $(echo $OSX_VERSION | egrep '10\.8|10\.9') ; then
1313 echo 'You must be on Mountain Lion or greater!'
1414 exit 1
1515fi
1616set -e
1717
18- if [ ! -f /usr/bin/gcc ]; then
18+ if [ "$OSX_VERSION" = "10.8" ] && [ ! -f /usr/bin/gcc ]; then
1919 printf "%s\n" $'
20- You need to have Xcode with Command Line Tools installed before you can
21- continue.
20+
21+ Since you are running OS X 10.8, you will need to install Xcode and the
22+ Command Line Tools to continue.
2223
2324 1. Go to the App Store and install Xcode.
2425 2. Start Xcode.
@@ -29,6 +30,20 @@ continue.
2930 exit 1
3031fi
3132
33+ if [ "$OSX_VERSION" = "10.9" ]; then
34+ printf "%s\n" $'
35+
36+ Since you are running OS X 10.9, you will need to install the Command
37+ Line Tools.
38+
39+ 1. You should see a pop-up asking you to install them in a moment.
40+ 2. Click Install!'
41+
42+ until $(gcc -v); do
43+ sleep 60
44+ done
45+ fi
46+
3247# show the banner and wait for a response
3348printf "%s" $'\e[1;32m
3449 ######## ####### ## ## ######## ## ##
You can’t perform that action at this time.
0 commit comments