From 6106ac903550ee323eb08a8abac02ce7c74c4a4d Mon Sep 17 00:00:00 2001 From: Martin Afanasjew Date: Thu, 21 Jan 2016 15:20:02 +0100 Subject: 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. --- Library/Homebrew/cmd/update-bash.sh | 9 --------- 1 file changed, 9 deletions(-) mode change 100755 => 100644 Library/Homebrew/cmd/update-bash.sh (limited to 'Library') diff --git a/Library/Homebrew/cmd/update-bash.sh b/Library/Homebrew/cmd/update-bash.sh old mode 100755 new mode 100644 index d44217bba..bcfefebec --- 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" "$@" } -- cgit v1.2.3