Skip to content

Commit

Permalink
clojure: update check url and regex
Browse files Browse the repository at this point in the history
Signed-off-by: mikeee <[email protected]>
  • Loading branch information
mikeee committed Jan 15, 2024
1 parent 8f167f2 commit a6675d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions automatic/clojure/update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

. $PSScriptRoot\..\..\scripts\all.ps1

$releases = 'https://www.clojure.org/guides/install_clojure'
$releases = 'https://www.clojure.org/releases/tools'

function global:au_SearchReplace {
@{
Expand All @@ -28,7 +28,7 @@ function global:au_AfterUpdate {

function global:au_GetLatest {
$page = Invoke-WebRequest -Uri $releases -UseBasicParsing
$regexVersion = 'https:\/\/download.clojure.org\/install\/linux-install-(?<version>[\d.]+).sh'
$regexVersion = '(?<version>[\d].[\d]{1,}.[\d].[\d]{4})'

$matched = $page.Content -match $regexVersion

Expand Down

0 comments on commit a6675d7

Please sign in to comment.