mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
formula_creator: tweak variable name
This commit is contained in:
parent
87e57368d4
commit
e71b1473b8
@ -86,8 +86,8 @@ module Homebrew
|
|||||||
html_doctype_prefix = "<!doctype html"
|
html_doctype_prefix = "<!doctype html"
|
||||||
# Number of bytes to read from file start to ensure it is not HTML.
|
# Number of bytes to read from file start to ensure it is not HTML.
|
||||||
# HTML may start with arbitrary number of whitespace lines.
|
# HTML may start with arbitrary number of whitespace lines.
|
||||||
head_len = 100
|
bytes_to_read = 100
|
||||||
if File.read(filepath, head_len).strip.downcase.start_with?(html_doctype_prefix)
|
if File.read(filepath, bytes_to_read).strip.downcase.start_with?(html_doctype_prefix)
|
||||||
raise "Downloaded URL is not archive"
|
raise "Downloaded URL is not archive"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user