diff options
| author | nmeans | 2009-09-02 14:21:22 -0500 |
|---|---|---|
| committer | Max Howell | 2009-09-03 00:26:02 +0100 |
| commit | 91d9a707b62e3152c7a026bf0b6698944d1b3f87 (patch) | |
| tree | 5b1d6b7f978a4f40c88ac13a041c4f900aff798c | |
| parent | 5eb51cb766b8b05c4ab19e571142d179481dee9b (diff) | |
| download | brew-91d9a707b62e3152c7a026bf0b6698944d1b3f87.tar.bz2 | |
Fixes HOMEBREW_PRFIX when brew is outside $PATH
If brew is called with an explicit path, eg. './bin/brew',
HOMEBREW_PREFIX is set to an empty string resulting in failure of all
brew commands using HOMEBREW_PREFIX. This commit forces Pathname to
compile an absolute path, setting HOMEBREW_PREFIX correctly.
| -rwxr-xr-x | bin/brew | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -14,7 +14,7 @@ else HOMEBREW_CACHE=Pathname.new("~/Library/Caches/Homebrew").expand_path end -HOMEBREW_PREFIX=Pathname.new(__FILE__).dirname.parent.cleanpath +HOMEBREW_PREFIX=(Pathname.getwd+__FILE__).dirname.parent.cleanpath HOMEBREW_CELLAR=HOMEBREW_PREFIX+'Cellar' HOMEBREW_VERSION='0.4' HOMEBREW_WWW='http://bit.ly/Homebrew' |
