From 07003f43caf6345a18858fd82c320623ebf42ae3 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 17 Jul 2014 14:56:38 -0500 Subject: [PATCH] Call size on the path --- Library/Homebrew/cmd/bottle.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/bottle.rb b/Library/Homebrew/cmd/bottle.rb index 043e5202c9..c74bb19217 100644 --- a/Library/Homebrew/cmd/bottle.rb +++ b/Library/Homebrew/cmd/bottle.rb @@ -158,7 +158,7 @@ module Homebrew safe_system 'tar', 'czf', bottle_path, "#{f.name}/#{f.pkg_version}" end - if File.size?(bottle_path) > 1*1024*1024 + if bottle_path.size > 1*1024*1024 ohai "Detecting if #{filename} is relocatable..." end