mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-25 14:01:03 -08:00
Merge pull request #3908 from buthed010203/patch-2
Delete old bleeding edge builds on update
This commit is contained in:
commit
c444cbf623
1 changed files with 2 additions and 0 deletions
|
|
@ -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.equals(self))) file.delete();
|
||||
|
||||
self.copyTo(dest);
|
||||
}catch(Throwable e){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue