bin/brew: avoid unnecessary 'tr' invocation

This reduces the number of processes that need to be forked. If
libtool's `config.guess` is to be trusted, there was never another
spelling/capitalization other that `Darwin`.
This commit is contained in:
Martin Afanasjew 2015-11-20 20:56:23 +01:00
parent 8f175cb03c
commit 5b828d4265

View File

@ -28,8 +28,7 @@ fi
if [ -z "$HOMEBREW_RUBY_PATH" ]
then
BREW_SYSTEM="$(uname -s | tr "[:upper:]" "[:lower:]")"
if [ "$BREW_SYSTEM" = "darwin" ]
if [ "$(uname -s)" = "Darwin" ]
then
HOMEBREW_RUBY_PATH="/System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby"
else