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.
This commit is contained in:
Martin Afanasjew 2016-01-21 15:13:28 +01:00
parent c2a928eb51
commit 93dad81d95

View File

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