Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion Scripts/Test-AppList.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ Process {
# Split the version string by non-numerical characters and then join them by a period to construct the version number
$ConvertVersion = ($Version -split "\D") -join "."

#If Version has more then 4 Values, then cut them (e.g 1.2.3.4.5 to 1.2.3.4)
$VersionSplit = $ConvertVersion.split("\.")
If (($VersionSplit).Count -gt 4){
$ConvertVersion = "$($VersionSplit[0]).$($VersionSplit[1]).$($VersionSplit[2]).$($VersionSplit[3])"
}

# Return the converted version number
return $ConvertVersion
}
Expand Down Expand Up @@ -501,4 +507,4 @@ Process {
Write-Output -InputObject "##vso[task.setvariable variable=shouldrun;isOutput=true]false"
throw "$($MyInvocation.MyCommand): Failed to retrieve authentication token with error message: $($_.Exception.Message)"
}
}
}