aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Afanasjew2015-11-20 20:56:23 +0100
committerMartin Afanasjew2015-12-01 21:36:05 +0100
commit5b828d4265adf06adc4eff6472a89038035ae833 (patch)
treee5f4ea1e8a68d77d031cff2068dbac3518f81a90
parent8f175cb03c57ac3a426d7cc1420f2b65aeaafd22 (diff)
downloadbrew-5b828d4265adf06adc4eff6472a89038035ae833.tar.bz2
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`.
-rwxr-xr-xbin/brew3
1 files changed, 1 insertions, 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