Fixed program update overwriting issue.

dev
sigonasr2 7 years ago
parent ee60241edd
commit 100f78a481
  1. 4
      src/sig/sigIRC.java

@ -257,7 +257,9 @@ public class sigIRC{
updatedir.mkdirs();
File programFile = new File(sigIRC.BASEDIR+"sigIRC/updates/sigIRCv2.jar");
try {
programFile.createNewFile();
if (programFile.exists()) {
programFile.delete();
}
org.apache.commons.io.FileUtils.copyURLToFile(new URL(sigIRC.PROGRAM_EXECUTABLE_URL),programFile);
} catch (IOException e) {
e.printStackTrace();

Loading…
Cancel
Save