Skip to content

Commit

Permalink
Force operating system check for Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
rkk committed Apr 21, 2018
1 parent 579645b commit 2806244
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions setup.macosx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ brew_packages="${brew_packages} shellcheck mksh ctags docker"
brew_cmd="/usr/local/bin/brew"
FONT_ROOT="${HOME}/Library/Fonts"

if [ "$(uname)" != "Darwin" ]; then
echo "Unsupported operating system"
exit 2
fi

if [ ! -f ${brew_cmd} ]; then
echo "ERROR: Homebrew is not installed"
exit 1
Expand Down

0 comments on commit 2806244

Please sign in to comment.