mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-24 08:44:46 +00:00
fix powershell error during build
This commit is contained in:
parent
42c17e885c
commit
7f75a39752
1 changed files with 6 additions and 3 deletions
|
@ -69,9 +69,12 @@ Function CleanFolder($path, $keepConfigFiles)
|
||||||
Write-Host Removing .less files
|
Write-Host Removing .less files
|
||||||
get-childitem $path -File -Filter *.less -Recurse | foreach ($_) {remove-item $_.fullname}
|
get-childitem $path -File -Filter *.less -Recurse | foreach ($_) {remove-item $_.fullname}
|
||||||
|
|
||||||
Write-Host Removing NuGet
|
if(Test-Path $$path\NuGet)
|
||||||
Remove-Item -Recurse -Force "$path\NuGet"
|
{
|
||||||
|
Write-Host Removing NuGet
|
||||||
|
Remove-Item -Recurse -Force "$path\NuGet"
|
||||||
|
}
|
||||||
|
|
||||||
Write-Host Removing Empty folders
|
Write-Host Removing Empty folders
|
||||||
while (Get-ChildItem $path -recurse | where {!@(Get-ChildItem -force $_.fullname)} | Test-Path)
|
while (Get-ChildItem $path -recurse | where {!@(Get-ChildItem -force $_.fullname)} | Test-Path)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue