bin/brew: be consistent about code style

This commit is contained in:
Martin Afanasjew 2015-11-20 20:41:21 +01:00
parent 15d4da01d6
commit fb4a2ea387

View File

@ -26,9 +26,11 @@ then
unset HOMEBREW_RUBY_PATH
fi
if [ -z "$HOMEBREW_RUBY_PATH" ]; then
if [ -z "$HOMEBREW_RUBY_PATH" ]
then
BREW_SYSTEM=$(uname -s | tr "[:upper:]" "[:lower:]")
if [ "$BREW_SYSTEM" = "darwin" ]; then
if [ "$BREW_SYSTEM" = "darwin" ]
then
export HOMEBREW_RUBY_PATH="/System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby"
else
export HOMEBREW_RUBY_PATH="$(which ruby)"