aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2009-07-31 18:06:49 -0700
committerMax Howell2009-08-02 01:25:01 +0100
commit58fe4cc2bf709a0603e441166c9b23bd70851b3e (patch)
treef86dc83a8cb5e1fb9006d5fbda8551fc1319011f
parente5fd9be0dc4a1fe5a8f7b5dd99b084d38b7dc968 (diff)
downloadbrew-58fe4cc2bf709a0603e441166c9b23bd70851b3e.tar.bz2
Use cleanpath instead of realpath to keep symlinks intact.
-rw-r--r--Library/Homebrew/env.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/env.rb b/Library/Homebrew/env.rb
index a9cb6aa91..3d948275e 100644
--- a/Library/Homebrew/env.rb
+++ b/Library/Homebrew/env.rb
@@ -21,5 +21,5 @@ require 'utils'
# TODO if whoami == root then use /Library/Caches/Homebrew instead
HOMEBREW_VERSION='0.3'
HOMEBREW_CACHE=File.expand_path "~/Library/Caches/Homebrew"
-HOMEBREW_PREFIX=Pathname.new(__FILE__).dirname.parent.parent.realpath
+HOMEBREW_PREFIX=Pathname.new(__FILE__).dirname.parent.parent.cleanpath
HOMEBREW_CELLAR=HOMEBREW_PREFIX+'Cellar'