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:
parent
8f175cb03c
commit
5b828d4265
3
bin/brew
3
bin/brew
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user