Fix brew --cache

Signed-off-by: Max Howell <max@methylblue.com>
This commit is contained in:
Adam Vandenberg 2009-08-04 00:12:03 +08:00 committed by Max Howell
parent bfa17cc16c
commit eda0dc1741

View File

@ -194,7 +194,7 @@ end
begin begin
case ARGV.shift case ARGV.shift
when '--prefix' then puts prefix when '--prefix' then puts prefix
when '--cache' then puts Homebrew::cache when '--cache' then puts HOMEBREW_CACHE
when '-h', '--help', '--usage', '-?' then puts usage when '-h', '--help', '--usage', '-?' then puts usage
when '-v', '--version' then puts HOMEBREW_VERSION when '-v', '--version' then puts HOMEBREW_VERSION
when 'macports' then exec "open 'http://www.macports.org/ports.php?by=name&substr=#{ARGV.shift}'" when 'macports' then exec "open 'http://www.macports.org/ports.php?by=name&substr=#{ARGV.shift}'"