Skip to content

Commit

Permalink
Merge pull request #190251 from Homebrew/miniconda-update-livecheck
Browse files Browse the repository at this point in the history
miniconda: update livecheck
  • Loading branch information
bevanjkay authored Oct 30, 2024
2 parents 99ec016 + e7d4988 commit 150c8b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Casks/m/miniconda.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@

livecheck do
url "https://repo.anaconda.com/miniconda/"
strategy do |content|
sha256 = content.scan(/>Miniconda3-latest-MacOSX-#{arch}\.sh<.{,99}>(\w{64})</im).first.first
content.scan(/>Miniconda3-(py\d+_[\d.-]+)-MacOSX-#{arch}\.sh<.{,99}>#{sha256}</im).first.first
strategy :page_match do |page|
sha256 = page.scan(/>Miniconda3-latest-MacOSX-#{arch}\.sh<.{,99}>(\w{64})</im).first.first
page.scan(/>Miniconda3-(py\d+_[\d.-]+)-MacOSX-#{arch}\.sh<.{,99}>#{sha256}</im).first.first
end
end

Expand Down

0 comments on commit 150c8b8

Please sign in to comment.