From ea9c37d795ddd5bc5a2663a4342b2f7373ba5e1b Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Wed, 27 Jan 2016 15:55:53 +0000 Subject: [PATCH] Ensure the software-install.sh script only runs on Mac OS X. --- bin/software-install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/software-install.sh b/bin/software-install.sh index d951d61..8febc81 100755 --- a/bin/software-install.sh +++ b/bin/software-install.sh @@ -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