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.
This commit is contained in:
Xu Cheng 2016-01-18 11:35:04 +08:00
parent f9b33e26e0
commit 29c50d2567

View File

@ -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