Skip to content

Commit 0f562df

Browse files
committed
Be sure to remove the target location of script analyzer to be sure that no pollution has occurred
1 parent d59d931 commit 0f562df

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

appveyor.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ test_script:
3838
- ps: |
3939
if ($env:PowerShellEdition -eq 'WindowsPowerShell') {
4040
$modulePath = $env:PSModulePath.Split([System.IO.Path]::PathSeparator) | Where-Object { Test-Path $_} | Select-Object -First 1
41+
if ( Test-Path "$modulePath\PSScriptAnalyzer" ) { Remove-Item -recurse -force "$modulePath\PSScriptAnalyzer" }
4142
Copy-Item "${env:APPVEYOR_BUILD_FOLDER}\out\PSScriptAnalyzer" "$modulePath\" -Recurse -Force
4243
$testResultsFile = ".\TestResults.xml"
4344
$testScripts = "${env:APPVEYOR_BUILD_FOLDER}\Tests\Engine","${env:APPVEYOR_BUILD_FOLDER}\Tests\Rules"

0 commit comments

Comments
 (0)