diff options
| author | Martin Afanasjew | 2015-11-20 20:56:23 +0100 |
|---|---|---|
| committer | Martin Afanasjew | 2015-12-01 21:36:05 +0100 |
| commit | 5b828d4265adf06adc4eff6472a89038035ae833 (patch) | |
| tree | e5f4ea1e8a68d77d031cff2068dbac3518f81a90 | |
| parent | 8f175cb03c57ac3a426d7cc1420f2b65aeaafd22 (diff) | |
| download | brew-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-x | bin/brew | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 |
