Ensure the software-install.sh script only runs on Mac OS X.
This commit is contained in:
parent
f386bb22b8
commit
ea9c37d795
|
@ -1,5 +1,10 @@
|
||||||
#!/bin/bash
|
#!/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
|
if [ ! -x /usr/local/bin/brew ]; then
|
||||||
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue