Skip to content

Commit

Permalink
homebrew-cask: update according to new sharding
Browse files Browse the repository at this point in the history
Update to correctly publish casks to homebrew/homebrew-cask
based on sharding [1].

[1]: Homebrew/homebrew-cask#152603
  • Loading branch information
ldennington committed Aug 10, 2023
1 parent 34a0ce7 commit c86843c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/homebrew.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ export class Tap {
}

async getCaskAsync(name: string): Promise<Package> {
const filePath = `Casks/${name}.rb`;
const prefix = this.repo.name === 'homebrew-cask' ? 'Casks/g' : 'Casks';
const filePath = `${prefix}/${name}.rb`;
return this.getPackageAsync(filePath);
}

Expand Down

0 comments on commit c86843c

Please sign in to comment.