Merge pull request #15498 from carlocab/zip-no-load-formula
unpack_strategy/zip: avoid loading formulae unnecessarily
This commit is contained in:
commit
a380aed887
@ -23,10 +23,12 @@ module UnpackStrategy
|
||||
.returns(SystemCommand::Result)
|
||||
}
|
||||
def extract_to_dir(unpack_dir, basename:, verbose:)
|
||||
unzip = begin
|
||||
Formula["unzip"]
|
||||
rescue FormulaUnavailableError
|
||||
nil
|
||||
unzip = if which("unzip").blank?
|
||||
begin
|
||||
Formula["unzip"]
|
||||
rescue FormulaUnavailableError
|
||||
nil
|
||||
end
|
||||
end
|
||||
|
||||
with_env(TZ: "UTC") do
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user