diff --git a/bin/brew b/bin/brew index dfd0b0dae2..11397106d7 100755 --- a/bin/brew +++ b/bin/brew @@ -151,7 +151,7 @@ EOS esac fi -if [[ -x "$HOMEBREW_BASH_COMMAND" ]] +if [[ -f "$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