From 93dad81d95bb7df1341f0a56e127b1f320f76279 Mon Sep 17 00:00:00 2001 From: Martin Afanasjew Date: Thu, 21 Jan 2016 15:13:28 +0100 Subject: [PATCH] bin/bash: don't require executable command files Commands implemented in shell (bash) are supposed to be sourced from `bin/bash` instead of being executed directly. Consequently, don't expect the implementation files to be executable. --- bin/brew | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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