Merge remote-tracking branch 'origin/master'

This commit is contained in:
Anuken
2020-12-11 11:48:27 -05:00
2 changed files with 24 additions and 0 deletions

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.equals(self))) file.delete();
self.copyTo(dest);
}catch(Throwable e){