1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

Don't generate kobaltw if it's already there.

This commit is contained in:
Cedric Beust 2015-12-12 23:19:26 -08:00
parent c6009a6a1e
commit fe1c8a3545
2 changed files with 6 additions and 8 deletions

Binary file not shown.

View file

@ -166,13 +166,11 @@ public class Main {
for (String file : FILES) {
Path to = Paths.get(new File(".").getAbsolutePath(), file);
if (file.equals(KOBALTW)) {
generateKobaltW(to);
}
if (Files.exists(to)) {
log(2, to + " already exists, not overwriting it");
log(2, " $to already exists, not overwriting it");
continue;
} else if (file.equals(KOBALTW)) {
generateKobaltW(to);
} else {
Path from = Paths.get(zipOutputDir, file);
try {