Skip to content

Commit

Permalink
Don't clean/delete deploy dir if not there
Browse files Browse the repository at this point in the history
  • Loading branch information
ethauvin committed Nov 28, 2024
1 parent 83b4b18 commit 64bd5c9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/bld/java/net/thauvin/erik/MobibotBuild.java
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,10 @@ public static void main(String[] args) {

@Override
public void clean() throws Exception {
FileUtils.deleteDirectory(new File("deploy"));
var deploy = new File("deploy");
if (deploy.exists()) {
FileUtils.deleteDirectory(deploy);
}
super.clean();
}

Expand Down

0 comments on commit 64bd5c9

Please sign in to comment.