mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Less verbose.
This commit is contained in:
parent
8de5e5f1f4
commit
20167caae9
1 changed files with 2 additions and 2 deletions
|
@ -171,13 +171,13 @@ public class Main {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Files.exists(to)) {
|
if (Files.exists(to)) {
|
||||||
log(1, to + " already exists, not overwriting it");
|
log(2, to + " already exists, not overwriting it");
|
||||||
continue;
|
continue;
|
||||||
} else {
|
} else {
|
||||||
Path from = Paths.get(zipOutputDir, file);
|
Path from = Paths.get(zipOutputDir, file);
|
||||||
try {
|
try {
|
||||||
if (isWindows() && to.toFile().exists()) {
|
if (isWindows() && to.toFile().exists()) {
|
||||||
log(1, "Windows detected, not overwriting " + to);
|
log(2, "Windows detected, not overwriting " + to);
|
||||||
} else {
|
} else {
|
||||||
Files.copy(from, to, StandardCopyOption.REPLACE_EXISTING);
|
Files.copy(from, to, StandardCopyOption.REPLACE_EXISTING);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue