diff --git a/scripts/clean.ps1 b/scripts/clean.ps1 index 6cfb7dc..84cb2bc 100644 --- a/scripts/clean.ps1 +++ b/scripts/clean.ps1 @@ -2,6 +2,12 @@ clear-host $path_root = git rev-parse --show-toplevel $path_project = join-path $path_root "project" +$path_build = join-path $path_project "build" $path_dependencies = join-path $path_project "dependencies" -Remove-Item $path_dependencies -Recurse +if ( Test-Path $path_dependencies ) { + Remove-Item $path_dependencies -Recurse +} +if ( Test-Path $path_project ) { + Remove-Item $path_build -Recurse +}