From cbb59cf1f2e86a4bf09ef5b9a5e5cf16a8c01eb7 Mon Sep 17 00:00:00 2001 From: James Truher Date: Fri, 31 May 2019 16:56:02 -0700 Subject: [PATCH] more debugging statements --- tools/appveyor.psm1 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tools/appveyor.psm1 b/tools/appveyor.psm1 index 842aa72b8..5236d2941 100644 --- a/tools/appveyor.psm1 +++ b/tools/appveyor.psm1 @@ -54,11 +54,17 @@ function Invoke-AppveyorTest { # set up env:PSModulePath to the build location, don't copy it to the "normal place" $analyzerVersion = ([xml](Get-Content "${CheckoutPath}\Engine\Engine.csproj")).SelectSingleNode(".//VersionPrefix")."#text".Trim() $majorVersion = ([System.Version]$analyzerVersion).Major + $psMajorVersion = $PSVersionTable.PSVersion.Major Get-ChildItem -rec -file -name "${CheckoutPath}/out" | Write-Verbose -Verbose - if ( $majorVersion -lt 5 ) { + Write-Verbose -verbose "version is $majorVersion" + if ( $psMajorVersion -lt 5 ) { $versionModuleDir = "${CheckoutPath}\out\PSScriptAnalyzer\${analyzerVersion}" - Rename-Item "${versionModuleDir}" "${CheckoutPath}\out\PSScriptAnalyzer\PSScriptAnalyzer" + $renameTarget = "${CheckoutPath}\out\PSScriptAnalyzer\PSScriptAnalyzer" + Write-Verbose -Verbose "versionModuleDir: ${versionModuleDir}" + Write-Verbose -Verbose "renameTarget: ${renameTarget}" + Write-Verbose -Verbose "target exists: $(Test-Path $renameTarget)" + Rename-Item "${versionModuleDir}" "${renameTarget}" $moduleDir = "${CheckoutPath}\out\PSScriptAnalyzer" } else{