mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 11:39:11 +03:00
[FIX] Исправлена команда перезапуска.
This commit is contained in:
parent
6db5d818b0
commit
b3c3ccea90
1 changed files with 1 additions and 2 deletions
|
@ -650,8 +650,7 @@ public void syncUpdatesDir(Collection<String> dirs) throws IOException {
|
|||
|
||||
public void restart() {
|
||||
ProcessBuilder builder = new ProcessBuilder();
|
||||
List<String> args = new ArrayList<>();
|
||||
if (config.startScript != null) args.add(config.startScript);
|
||||
if (config.startScript != null) builder.command(Collections.singletonList(config.startScript));
|
||||
else throw new IllegalArgumentException("Please create start script and link it as startScript in config.");
|
||||
builder.directory(this.dir.toFile());
|
||||
builder.inheritIO();
|
||||
|
|
Loading…
Reference in a new issue