| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 24c800f commit 9c8cdb5
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2250,6 +2250,9 @@ function Copy-PSGalleryModules | |||
| 2250 | 2250 | # Remove the build revision from the src (nuget drops it). | |
| 2251 | 2251 | $srcVer = if ($version -match "(\d+.\d+.\d+).0") { | |
| 2252 | 2252 | $matches[1] | |
| 2253 | + } elseif ($version -match "^\d+.\d+$") { | ||
| 2254 | + # Two digit versions are stored as three digit versions | ||
| 2255 | + "$version.0" | ||
| 2253 | 2256 | } else { | |
| 2254 | 2257 | $version | |
| 2255 | 2258 | } | |
@@ -2262,7 +2265,7 @@ function Copy-PSGalleryModules | |||
| 2262 | 2265 | New-Item -Path $dest -ItemType Directory -Force -ErrorAction Stop > $null | |
| 2263 | 2266 | # Exclude files/folders that are not needed. The fullclr folder is coming from the PackageManagement module | |
| 2264 | 2267 | $dontCopy = '*.nupkg', '*.nupkg.metadata', '*.nupkg.sha512', '*.nuspec', 'System.Runtime.InteropServices.RuntimeInformation.dll', 'fullclr' | |
| 2265 | - Copy-Item -Exclude $dontCopy -Recurse $src/* $dest | ||
| 2268 | + Copy-Item -Exclude $dontCopy -Recurse $src/* $dest -ErrorAction Stop | ||
| 2266 | 2269 | } | |
| 2267 | 2270 | } | |
| 2268 | 2271 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,7 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | 5 | <ItemGroup> | |
| 6 | 6 | <PackageReference Include="PowerShellGet" Version="2.1.3" /> | |
| 7 | - <PackageReference Include="PackageManagement" Version="1.3.2" /> | ||
| 7 | + <PackageReference Include="PackageManagement" Version="1.4" /> | ||
| 8 | 8 | <PackageReference Include="Microsoft.PowerShell.Archive" Version="1.2.3.0" /> | |
| 9 | 9 | <PackageReference Include="PSReadLine" Version="2.0.0-beta4" /> | |
| 10 | 10 | <PackageReference Include="ThreadJob" Version="1.1.2" /> | |
| Back | FazBrowse Home | New Git URL |
0 commit comments