mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
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:
parent
c2a928eb51
commit
93dad81d95
2
bin/brew
2
bin/brew
@ -151,7 +151,7 @@ EOS
|
|||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -x "$HOMEBREW_BASH_COMMAND" ]]
|
if [[ -f "$HOMEBREW_BASH_COMMAND" ]]
|
||||||
then
|
then
|
||||||
# source rather than executing directly to ensure the entire file is read into
|
# 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
|
# memory before it is run. This makes running a Bash script behave more like
|
||||||
|
Loading…
x
Reference in New Issue
Block a user