diff --git a/src/main/java/net/horizoncode/sysbackup/tasks/impl/FileSystemTask.java b/src/main/java/net/horizoncode/sysbackup/tasks/impl/FileSystemTask.java index f337a53..c1bad25 100644 --- a/src/main/java/net/horizoncode/sysbackup/tasks/impl/FileSystemTask.java +++ b/src/main/java/net/horizoncode/sysbackup/tasks/impl/FileSystemTask.java @@ -41,16 +41,6 @@ public class FileSystemTask extends Task { .getPool() .submit( () -> { - int terminalWidth = -1; - try { - Terminal terminal = TerminalBuilder.terminal(); - try (terminal) { - terminalWidth = terminal.getWidth(); - } - } catch (IOException e) { - throw new RuntimeException(e); - } - try (ZipFile zipFile = new ZipFile(outputZipFile)) { System.out.println("Indexing files..."); ProgressMonitor progressMonitor = zipFile.getProgressMonitor(); @@ -62,8 +52,6 @@ public class FileSystemTask extends Task { .setInitialMax(progressMonitor.getTotalWork()) .setTaskName("Adding Files..."); - if (terminalWidth != -1) pbb.setMaxRenderedLength(terminalWidth); - try (ProgressBar pb = pbb.build()) { while (!progressMonitor.getState().equals(ProgressMonitor.State.READY)) { pb.stepTo(progressMonitor.getWorkCompleted());