Use cleanpath instead of realpath to keep symlinks intact.

This commit is contained in:
Adam Vandenberg 2009-07-31 18:06:49 -07:00 committed by Max Howell
parent e5fd9be0dc
commit 58fe4cc2bf

View File

@ -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'