mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Only remove the revision if it is 0 from module version when restoring modules (#7538)
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user