From 100f78a4818831b82ee9f75995395f3934ace6c2 Mon Sep 17 00:00:00 2001 From: sigonasr2 Date: Tue, 17 Oct 2017 00:11:16 -0500 Subject: [PATCH] Fixed program update overwriting issue. --- src/sig/sigIRC.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/sig/sigIRC.java b/src/sig/sigIRC.java index ecbe8a3..0f215d0 100644 --- a/src/sig/sigIRC.java +++ b/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();