Ensure the software-install.sh script only runs on Mac OS X.

This commit is contained in:
Scott Wallace 2016-01-27 15:55:53 +00:00
parent f386bb22b8
commit ea9c37d795

View file

@ -1,5 +1,10 @@
#!/bin/bash
if [ $(uname -s) != "Darwin" ]; then
echo "This should only run on Mac OS X."
exit 1
fi
if [ ! -x /usr/local/bin/brew ]; then
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi