aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorAdam Vandenberg2010-08-07 16:32:30 -0700
committerAdam Vandenberg2010-08-07 18:08:49 -0700
commit1c3f0e43dee3958c4ddbfdf0726817198725eeca (patch)
tree9fa02aad233f029d89777545d8e1c0034ffce753 /bin
parentc5a117162095774bb9b0bb5099168c63a01fcea6 (diff)
downloadbrew-1c3f0e43dee3958c4ddbfdf0726817198725eeca.tar.bz2
add URLs to brew info
Diffstat (limited to 'bin')
-rwxr-xr-xbin/brew2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/brew b/bin/brew
index 283471926..e9016704a 100755
--- a/bin/brew
+++ b/bin/brew
@@ -223,7 +223,7 @@ begin
else
puts `ls #{HOMEBREW_CELLAR} | wc -l`.strip+" kegs, "+HOMEBREW_CELLAR.abv
end
- elsif ARGV[0][0..6] == 'http://'
+ elsif ARGV[0][0..6] == 'http://' or ARGV[0][0..7] == 'https://' or ARGV[0][0..5] == 'ftp://'
path = Pathname.new(ARGV.shift)
/(.*?)[-_.]?#{path.version}/.match path.basename
unless $1.to_s.empty?