mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-04-04 15:31:53 +03:00
[FIX] Non-critical restart cmd.
This commit is contained in:
parent
6db5d818b0
commit
7c68bf021c
1 changed files with 1 additions and 2 deletions
|
@ -650,8 +650,7 @@ public void syncUpdatesDir(Collection<String> dirs) throws IOException {
|
||||||
|
|
||||||
public void restart() {
|
public void restart() {
|
||||||
ProcessBuilder builder = new ProcessBuilder();
|
ProcessBuilder builder = new ProcessBuilder();
|
||||||
List<String> args = new ArrayList<>();
|
if (config.startScript != null) builder.command(Collections.singletonList(config.startScript));
|
||||||
if (config.startScript != null) args.add(config.startScript);
|
|
||||||
else throw new IllegalArgumentException("Please create start script and link it as startScript in config.");
|
else throw new IllegalArgumentException("Please create start script and link it as startScript in config.");
|
||||||
builder.directory(this.dir.toFile());
|
builder.directory(this.dir.toFile());
|
||||||
builder.inheritIO();
|
builder.inheritIO();
|
||||||
|
|
Loading…
Reference in a new issue