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 9, 2024
1 parent 1497a73 commit 7aee541
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-")

Check warning on line 1400 in Library/Homebrew/tap.rb

View check run for this annotation

Codecov / codecov/patch

Library/Homebrew/tap.rb#L1400

Added line #L1400 was not covered by tests
"font/font-#{token[5]}"
else
token[0].to_s
end

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

Expand Down

0 comments on commit 7aee541

Please sign in to comment.