Skip to content
This repository was archived by the owner on Dec 2, 2020. It is now read-only.

Commit b26abd0

Browse files
committed
Spike out CLT automation for mavericks
1 parent dd4e2d6 commit b26abd0

1 file changed

Lines changed: 20 additions & 5 deletions

File tree

app/views/splash/script.sh.erb

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,19 @@ if [ "$0" = "/tmp/install-boxen" ]; then
77
fi
88

99
set +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
1515
fi
1616
set -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
3031
fi
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
3348
printf "%s" $'\e[1;32m
3449
######## ####### ## ## ######## ## ##

0 commit comments

Comments
 (0)