Merge pull request #3908 from buthed010203/patch-2
Delete old bleeding edge builds on update
This commit is contained in:
@@ -50,6 +50,8 @@ public class BeControl{
|
|||||||
Fi dest = Fi.get(System.getProperty("becopy"));
|
Fi dest = Fi.get(System.getProperty("becopy"));
|
||||||
Fi self = Fi.get(BeControl.class.getProtectionDomain().getCodeSource().getLocation().toURI().getPath());
|
Fi self = Fi.get(BeControl.class.getProtectionDomain().getCodeSource().getLocation().toURI().getPath());
|
||||||
|
|
||||||
|
for(Fi file : self.parent().findAll(f -> !f.equals(self))) file.delete();
|
||||||
|
|
||||||
self.copyTo(dest);
|
self.copyTo(dest);
|
||||||
}catch(Throwable e){
|
}catch(Throwable e){
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
|||||||
Reference in New Issue
Block a user