diff --git a/make.ps1 b/make.ps1 index a765ee7f10..a2163819c5 100644 --- a/make.ps1 +++ b/make.ps1 @@ -73,9 +73,12 @@ elseif ($command -eq "clean") $proc = Start-Process $msBuild $msBuildArguments -NoNewWindow -PassThru -Wait rm *.dll rm *.config - rm thirdparty/*.dll - rmdir thirdparty/windows/ rm mods/*/*.dll + rm thirdparty/*.dll + if(Test-Path -Path thirdparty/windows/) + { + rmdir thirdparty/windows/ -Recurse + } echo "Clean complete." } }