From 5b828d4265adf06adc4eff6472a89038035ae833 Mon Sep 17 00:00:00 2001 From: Martin Afanasjew Date: Fri, 20 Nov 2015 20:56:23 +0100 Subject: 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`. --- bin/brew | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/brew b/bin/brew index c3468aaac..37f918b56 100755 --- a/bin/brew +++ b/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 -- cgit v1.2.3