Need the -Recurse option

This commit is contained in:
Steve Streeting 2023-09-18 12:22:48 +01:00
parent 460dab5dde
commit 0b5f0ab62d

View File

@ -216,7 +216,7 @@ try {
$outDir = Get-Package-Dir -config:$config -versionNumber:$versionNumber -variantName:$var.Name $outDir = Get-Package-Dir -config:$config -versionNumber:$versionNumber -variantName:$var.Name
# Delete previous # Delete previous
Remove-Item -Path $outDir -Force -ErrorAction SilentlyContinue Remove-Item -Path $outDir -Recurse -Force -ErrorAction SilentlyContinue
$argList = [System.Collections.ArrayList]@() $argList = [System.Collections.ArrayList]@()
$argList.Add("-ScriptsForProject=`"$projfile`"") > $null $argList.Add("-ScriptsForProject=`"$projfile`"") > $null