tap: fix sharding for font-* casks
This commit is contained in:
parent
db4099d977
commit
1b286befed
@ -1397,14 +1397,11 @@ class CoreCaskTap < AbstractCoreTap
|
|||||||
|
|
||||||
sig { params(token: String).returns(Pathname) }
|
sig { params(token: String).returns(Pathname) }
|
||||||
def new_cask_path(token)
|
def new_cask_path(token)
|
||||||
cask_subdir = token[0].to_s
|
cask_subdir = if token.start_with?("font-")
|
||||||
cask_dir/cask_subdir/"#{token.downcase}.rb"
|
"font/font-#{token.delete_prefix("font-")[0]}"
|
||||||
|
else
|
||||||
|
token[0].to_s
|
||||||
end
|
end
|
||||||
|
|
||||||
sig { params(token: String).returns(Pathname) }
|
|
||||||
def new_cask_font_path(token)
|
|
||||||
font_first_letter = T.must(token.split("font-").second)[0].to_s
|
|
||||||
cask_subdir = "font/font-#{font_first_letter}"
|
|
||||||
cask_dir/cask_subdir/"#{token.downcase}.rb"
|
cask_dir/cask_subdir/"#{token.downcase}.rb"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user