Skip to content

Commit

Permalink
brew: Don't re-canonicalize
Browse files Browse the repository at this point in the history
HOMEBREW_BREW_FILE and BREW_FILE_DIRECTORY are already canonicalized.
  • Loading branch information
caldwell authored and MikeMcQuaid committed Feb 18, 2016
1 parent 8156e76 commit 9e32aed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/brew
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ then
chdir "$BREW_SYMLINK_DIRECTORY" && pwd -P)"
fi

HOMEBREW_PREFIX="$(chdir "$(dirname "$(dirname "$HOMEBREW_BREW_FILE")")" && pwd -P)"
HOMEBREW_REPOSITORY="$(chdir "$BREW_FILE_DIRECTORY"/../ && pwd -P)"
HOMEBREW_LIBRARY="$(chdir "$BREW_FILE_DIRECTORY"/../Library && pwd -P)"
HOMEBREW_PREFIX="${HOMEBREW_BREW_FILE%/*/*}"
HOMEBREW_REPOSITORY="${BREW_FILE_DIRECTORY%/*}"
HOMEBREW_LIBRARY="${BREW_FILE_DIRECTORY%/*}/Library"

source "$HOMEBREW_LIBRARY/brew.sh"

0 comments on commit 9e32aed

Please sign in to comment.