Delete old bleeding edge builds on update

This commit is contained in:
buthed010203
2020-12-10 11:41:50 -05:00
committed by GitHub
parent 28e18332a0
commit 3b3daf0e25

View File

@@ -49,6 +49,8 @@ public class BeControl{
try{
Fi dest = Fi.get(System.getProperty("becopy"));
Fi self = Fi.get(BeControl.class.getProtectionDomain().getCodeSource().getLocation().toURI().getPath());
for(Fi file : self.parent().findAll(f -> f != self)) file.delete();
self.copyTo(dest);
}catch(Throwable e){