Only remove the revision if it is 0 from module version when restoring modules (#7538)

This commit is contained in:
Travis Plunk 2018-08-15 21:53:00 -07:00 committed by GitHub
parent 79234ca91a
commit 4acf1038a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2504,7 +2504,7 @@ function Copy-PSGalleryModules
Write-Log "Name='$Name', Version='$version', Destination='$Destination'"
# Remove the build revision from the src (nuget drops it).
$srcVer = if ($version -match "(\d+.\d+.\d+).\d+") {
$srcVer = if ($version -match "(\d+.\d+.\d+).0") {
$matches[1]
} else {
$version