refactor: update CommandBuilder methods to use addAll for multiple arguments (#5275)

This commit is contained in:
Glavo
2026-01-21 21:26:12 +08:00
committed by GitHub
parent 55cbb6cd2c
commit ba5e63395f
3 changed files with 22 additions and 11 deletions

View File

@@ -253,7 +253,7 @@ public final class Launcher extends Application {
if (Files.exists(mcDir))
files.add(mcDir.toString());
String command = new CommandBuilder().add("sudo", "chown", "-R", userName).addAll(files).toString();
String command = new CommandBuilder().addAll("sudo", "chown", "-R", userName).addAll(files).toString();
ButtonType copyAndExit = new ButtonType(i18n("button.copy_and_exit"));
if (showAlert(AlertType.ERROR,