Skip to content

Commit

Permalink
Fix error trying to delete non-existing Artifacts dir
Browse files Browse the repository at this point in the history
  • Loading branch information
angularsen committed Feb 13, 2019
1 parent 79f35d7 commit 5a2d402
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Build/build-functions.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ if ($msbuild) {
}

function Remove-ArtifactsDir {
write-host -foreground blue "Clean up...`n"
rm $artifactsDir -Recurse -Force -ErrorAction Stop
write-host -foreground blue "Clean up...END`n"
if (Test-Path $artifactsDir) {
write-host -foreground blue "Clean up...`n"
rm $artifactsDir -Recurse -Force -ErrorAction Stop
write-host -foreground blue "Clean up...END`n"
}
}

function Update-GeneratedCode {
Expand Down

0 comments on commit 5a2d402

Please sign in to comment.