aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXu Cheng2016-01-18 11:35:04 +0800
committerXu Cheng2016-01-20 13:55:06 +0800
commit29c50d256741fc54a99aec1f6b9513ecb32ef8f7 (patch)
treea126d895fcd036f4759161a72af42204f55413bf
parentf9b33e26e077a80e85caa1b2434943ab7b55de60 (diff)
downloadbrew-29c50d256741fc54a99aec1f6b9513ecb32ef8f7.tar.bz2
bin/brew: remove unnecessary check
HOMEBREW_BASH_COMMAND variable will always exist. So we only need to check whether the corresponding file exist or not.
-rwxr-xr-xbin/brew2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/brew b/bin/brew
index 046e8ee29..d5e85bc14 100755
--- a/bin/brew
+++ b/bin/brew
@@ -143,7 +143,7 @@ EOS
esac
fi
-if [ -n "$HOMEBREW_BASH_COMMAND" ] && [ -x "$HOMEBREW_BASH_COMMAND" ]
+if [ -x "$HOMEBREW_BASH_COMMAND" ]
then
# source rather than executing directly to ensure the entire file is read into
# memory before it is run. This makes running a Bash script behave more like