aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xLibrary/Contributions/examples/brew-fetch.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/Library/Contributions/examples/brew-fetch.rb b/Library/Contributions/examples/brew-fetch.rb
index aadb91333..04573669f 100755
--- a/Library/Contributions/examples/brew-fetch.rb
+++ b/Library/Contributions/examples/brew-fetch.rb
@@ -10,6 +10,8 @@ ARGV.formulae.each do |f|
end
the_tarball = f.downloader.fetch
- md5 = the_tarball.md5
- puts "MD5 is #{md5}"
+ if the_tarball.kind_of? Pathname
+ md5 = the_tarball.md5
+ puts "MD5 is #{md5}"
+ end
end