Skip to content

Commit

Permalink
correct version to solve #3879
Browse files Browse the repository at this point in the history
  • Loading branch information
tunisiano187 committed Oct 12, 2024
1 parent 8280f5d commit 20fee97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion automatic/paraview/update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function global:au_GetLatest {
$folder = ((Invoke-WebRequest -Uri $releases -UseBasicParsing).Links | Where-Object {$_ -match 'v[0-9].'} | Select-Object -Last 1).href
$file = (((Invoke-WebRequest -Uri "$releases$folder" -UseBasicParsing).Links | Where-Object {$_ -match ".msi"} | Select-Object -Last 1).href).replace('.0&','&')
$url = "https://www.paraview.org/paraview-downloads/download.php?submit=Download&version=$folder&type=binary&os=Windows&downloadFile=$file"
$version=$folder.replace('v','').replace('/','')
$version=$file.Split('-') | Where-Object {$_ -match '^[0-9]\.[0-9]'}

$Latest = @{ URL32 = $url; Version = $version }
return $Latest
Expand Down

0 comments on commit 20fee97

Please sign in to comment.