Merge pull request #763 from silentrald/hotfix/inject-env-vars

[hotfix] properly inject the env variable to the launch command
This commit is contained in:
MathieuG-P
2025-01-29 12:14:57 +01:00
committed by GitHub
@@ -139,9 +139,11 @@ export abstract class AbstractLauncherService {
for (const [ key, value ] of Object.entries(parseEnvString(envString))) {
if (key in env) {
log.warn("Ignoring", `${key}=${value}`, "already set env launch command");
} else {
log.info("Injecting", `${key}="${value}"`, "to the env launch command");
continue;
}
log.info("Injecting", `${key}="${value}"`, "to the env launch command");
env[key] = value;
}
launchOptions.command = command.substring(index + this.COMMAND_FORMAT.length);