aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Afanasjew2016-01-21 15:13:28 +0100
committerMartin Afanasjew2016-01-26 16:26:07 +0100
commit93dad81d95bb7df1341f0a56e127b1f320f76279 (patch)
tree64ca501097cc2cb7ae2320d1a3b1b9ce13209509
parentc2a928eb51e872661281dbf3b0cd54f07797bc40 (diff)
downloadbrew-93dad81d95bb7df1341f0a56e127b1f320f76279.tar.bz2
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.
-rwxr-xr-xbin/brew2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/brew b/bin/brew
index dfd0b0dae..11397106d 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