From bbb9952128f5070818ccb3ab1abaade54a4ad71b Mon Sep 17 00:00:00 2001 From: "Christoph Bergmeister (MVP)" Date: Sun, 24 Mar 2019 03:24:09 +0000 Subject: [PATCH] Avoid build error when rebuilding but compatibility profiles already exist (there was hardly any difference, therefore always copy) --- build.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.psm1 b/build.psm1 index 38b80d4a0..a5a772ceb 100644 --- a/build.psm1 +++ b/build.psm1 @@ -120,7 +120,7 @@ function Copy-CompatibilityProfiles $profileDir = [System.IO.Path]::Combine($PSScriptRoot, 'PSCompatibilityAnalyzer', 'profiles') $destinationDir = [System.IO.Path]::Combine($PSScriptRoot, 'out', 'PSScriptAnalyzer', "compatibility_profiles") - Copy-Item -Recurse $profileDir $destinationDir + Copy-Item -Recurse $profileDir $destinationDir -Force } # build script analyzer (and optionally build everything with -All)