File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -53,8 +53,10 @@ function Invoke-AppveyorTest {
5353
5454 # set up env:PSModulePath to the build location, don't copy it to the "normal place"
5555 $analyzerVersion = ([xml ](Get-Content " ${CheckoutPath} \Engine\Engine.csproj" )).SelectSingleNode(" .//VersionPrefix" )." #text" .Trim()
56+ $majorVersion = ([System.Version ]$analyzerVersion ).Major
5657
57- if ( $analyzerVersion -lt 5 ) {
58+ Get-ChildItem - rec - file - name " ${CheckoutPath} /out" | Write-Verbose - Verbose
59+ if ( $majorVersion -lt 5 ) {
5860 $versionModuleDir = " ${CheckoutPath} \out\PSScriptAnalyzer\${analyzerVersion} "
5961 Rename-Item " ${versionModuleDir} " " ${CheckoutPath} \out\PSScriptAnalyzer\PSScriptAnalyzer"
6062 $moduleDir = " ${CheckoutPath} \out\PSScriptAnalyzer"
You can’t perform that action at this time.
0 commit comments