Merge pull request #14511 from Rylan12/fix-config-error
Fix error when showing `brew config` JSON update time
This commit is contained in:
commit
ffad784971
@ -148,7 +148,7 @@ module SystemConfig
|
|||||||
end
|
end
|
||||||
|
|
||||||
if (formula_json = Homebrew::API::HOMEBREW_CACHE_API/"formula.json") && formula_json.exist?
|
if (formula_json = Homebrew::API::HOMEBREW_CACHE_API/"formula.json") && formula_json.exist?
|
||||||
f.puts "Core tap JSON: #{formula_json.mtime.to_s(:short)}"
|
f.puts "Core tap JSON: #{formula_json.mtime.utc.strftime("%d %b %H:%M UTC")}"
|
||||||
elsif !CoreTap.instance.installed?
|
elsif !CoreTap.instance.installed?
|
||||||
f.puts "Core tap: N/A"
|
f.puts "Core tap: N/A"
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user