Skip to content

Commit

Permalink
tap: allow sharding of fonts in Homebrew/cask
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Linnane <patrick@linnane.io>

Co-authored-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>

Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
  • Loading branch information
p-linnane and MikeMcQuaid committed May 7, 2024
1 parent 802487d commit 1460185
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Library/Homebrew/tap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1397,7 +1397,12 @@ def core_cask_tap?

sig { params(token: String).returns(Pathname) }
def new_cask_path(token)
cask_subdir = token[0].to_s
cask_subdir = if token.start_with?("font")
"font/#{token.sub(/^font-?/).first}"
else
token[0].to_s
end

cask_dir/cask_subdir/"#{token.downcase}.rb"
end

Expand Down

0 comments on commit 1460185

Please sign in to comment.