Call size on the path

This commit is contained in:
Jack Nagel 2014-07-17 14:56:38 -05:00
parent ddefbe2c85
commit 07003f43ca

View File

@ -158,7 +158,7 @@ module Homebrew
safe_system 'tar', 'czf', bottle_path, "#{f.name}/#{f.pkg_version}" safe_system 'tar', 'czf', bottle_path, "#{f.name}/#{f.pkg_version}"
end end
if File.size?(bottle_path) > 1*1024*1024 if bottle_path.size > 1*1024*1024
ohai "Detecting if #{filename} is relocatable..." ohai "Detecting if #{filename} is relocatable..."
end end