From d8cb5af7d6515613eafa422820eaa4008881bac9 Mon Sep 17 00:00:00 2001 From: unitwk Date: Sun, 15 Jan 2023 14:41:41 +0800 Subject: [PATCH] Fix: quick install command include space char --- src/service/async_task_service/quick_install.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/service/async_task_service/quick_install.ts b/src/service/async_task_service/quick_install.ts index 72b9eea..8f08322 100644 --- a/src/service/async_task_service/quick_install.ts +++ b/src/service/async_task_service/quick_install.ts @@ -73,14 +73,13 @@ export class QuickInstallTask extends AsyncTask { if (config.startCommand && config.startCommand.includes("{{java}}")) { if (this.hasJava17()) { - config.startCommand = config.startCommand.replace("{{java}}", this.JAVA_17_PATH); + config.startCommand = config.startCommand.replace("{{java}}", `"${this.JAVA_17_PATH}"`); } else { config.startCommand = config.startCommand.replace("{{java}}", "java"); } } this.instance.parameters(config); - this.stop(); } catch (error) { this.error(error);