Skip to content

Commit

Permalink
cask-analytics: use new cask path (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
razvanazamfirei authored Sep 12, 2023
1 parent f81969e commit f1001c0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cask-analytics
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ end
HBC_TAPS = Pathname.new(Open3.capture2('brew', '--repository', 'homebrew/cask').first).dirname

ARGV.each do |cask_name|
cask_path = HBC_TAPS.glob("homebrew-cask*/Casks/#{cask_name}.rb").first
cask_path = HBC_TAPS.glob("homebrew-cask*/Casks/#{cask_name[0]}/#{cask_name}.rb").first

abort 'Did not find any cask locally named ' + cask_name if cask_path.nil?

Expand Down Expand Up @@ -80,7 +80,8 @@ ARGV.each do |cask_name|
Open3.capture2(
'git', '-C', cask_tap_dir.to_path,
'log', '--diff-filter=A',
'--max-count=1', '--format=%aI', cask_path.to_path
'--follow', '--max-count=1',
'--format=%aI', cask_path.to_path
).first.strip
)

Expand Down

0 comments on commit f1001c0

Please sign in to comment.