File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11$Object1 = Invoke-WebRequest - Uri ' https://deploy.drofus.com/stable/RELEASES' | Read-ResponseContent | ConvertFrom-SquirrelReleases | Where-Object - FilterScript { -not $_.IsDelta } | Sort-Object - Property { $_.Version -creplace ' \d+' , { $_.Value.PadLeft (20 ) } } - Bottom 1
22
3- $VersionMatches = [regex ]::Match($Object1.Filename , ' (\d+(?:\.\d+)+)(?:-stable)?-(\d+)' )
3+ $VersionMatches = [regex ]::Match($Object1.Filename , ' (\d+(?:\.\d+)+)(?:-stable)?( -(\d+))? ' )
44
55# Version
6- $this.CurrentState.Version = " $ ( $VersionMatches.Groups [1 ].Value) .$ ( $VersionMatches.Groups [2 ].Value) "
6+ $this.CurrentState.Version = " $ ( $VersionMatches.Groups [1 ].Value) .$ ( $VersionMatches.Groups [2 ].Success ? $VersionMatches .Groups [ 2 ]. Value : ' 0 ' ) "
77
88# RealVersion
99$this.CurrentState.RealVersion = $VersionMatches.Groups [1 ].Value
Original file line number Diff line number Diff line change 11$Object1 = Invoke-WebRequest - Uri ' https://deploy.drofus.com/stable/RELEASES' | Read-ResponseContent | ConvertFrom-SquirrelReleases | Where-Object - FilterScript { -not $_.IsDelta } | Sort-Object - Property { $_.Version -creplace ' \d+' , { $_.Value.PadLeft (20 ) } } - Bottom 1
22
3- $VersionMatches = [regex ]::Match($Object1.Filename , ' (\d+(?:\.\d+)+)(?:-stable)?-(\d+)' )
3+ $VersionMatches = [regex ]::Match($Object1.Filename , ' (\d+(?:\.\d+)+)(?:-stable)?( -(\d+))? ' )
44
55# Version
6- $this.CurrentState.Version = " $ ( $VersionMatches.Groups [1 ].Value) .$ ( $VersionMatches.Groups [2 ].Value) "
6+ $this.CurrentState.Version = " $ ( $VersionMatches.Groups [1 ].Value) .$ ( $VersionMatches.Groups [2 ].Success ? $VersionMatches .Groups [ 2 ]. Value : ' 0 ' ) "
77
88# Installer
99$this.CurrentState.Installer += [ordered ]@ {
You can’t perform that action at this time.
0 commit comments