Skip to content
This repository has been archived by the owner on Oct 6, 2019. It is now read-only.

Commit

Permalink
Bug in build script
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Hansen committed Jul 12, 2018
1 parent 0b4740d commit dc5e534
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ DeleteFile ("./phosphorusfive-8-1/core/p5.webapp/auth.hl");
* Deleting "/db/" folder.
*/
var directoriesToDelete = new DirectoryPath [] { Directory("./phosphorusfive-8-1/core/p5.webapp/db/")};
DeleteDirectories (directoriesToDelete, new DeleteDirectorySettings {Recursive = true, Force = true});
if (DirectoryExists (directoriesToDelete [0])) {
DeleteDirectories (directoriesToDelete, new DeleteDirectorySettings {Recursive = true, Force = true});
}

/*
* Deleting "common" folder.
Expand Down

0 comments on commit dc5e534

Please sign in to comment.