aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorMartin Afanasjew2016-01-21 15:20:02 +0100
committerMartin Afanasjew2016-01-26 16:26:07 +0100
commit6106ac903550ee323eb08a8abac02ce7c74c4a4d (patch)
tree4b1bbb0e030b3ce69c438bfa1d15165f0ed8dc16 /Library/Homebrew/cmd
parent93dad81d95bb7df1341f0a56e127b1f320f76279 (diff)
downloadbrew-6106ac903550ee323eb08a8abac02ce7c74c4a4d.tar.bz2
update-bash: discourage direct use
Remove the executable bit from the file to make it clear it is not supposed to be executed directly. This should make the shebang line and the early check also unnecessary.
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--[-rwxr-xr-x]Library/Homebrew/cmd/update-bash.sh9
1 files changed, 0 insertions, 9 deletions
diff --git a/Library/Homebrew/cmd/update-bash.sh b/Library/Homebrew/cmd/update-bash.sh
index d44217bba..bcfefebec 100755..100644
--- a/Library/Homebrew/cmd/update-bash.sh
+++ b/Library/Homebrew/cmd/update-bash.sh
@@ -1,12 +1,3 @@
-#!/bin/bash
-
-if [[ -z "$HOMEBREW_BREW_FILE" ]]
-then
- # we don't use odie here, because it's only available when this script is called from brew.
- echo "Error: $(basename "$0") must be called from brew!" >&2
- exit 1
-fi
-
brew() {
"$HOMEBREW_BREW_FILE" "$@"
}