Fix logical error

This commit is contained in:
Joseph Garrone 2024-05-26 19:40:13 +02:00
parent 01161fd8ef
commit 1497672a4e
2 changed files with 7 additions and 7 deletions

View File

@ -25,7 +25,7 @@ export async function keycloakifyBuild(params: {
cwd: buildOptions.reactAppRootDirPath, cwd: buildOptions.reactAppRootDirPath,
env: { env: {
...process.env, ...process.env,
...(doSkipBuildJars ? {} : { [skipBuildJarsEnvName]: "true" }) ...(doSkipBuildJars ? { [skipBuildJarsEnvName]: "true" } : {})
} }
}); });

View File

@ -204,12 +204,6 @@ export async function command(params: { cliCommandOptions: CliCommandOptions })
console.log(`Using Keycloak ${chalk.bold(jarFileBasename)}`); console.log(`Using Keycloak ${chalk.bold(jarFileBasename)}`);
try {
child_process.execSync(`docker rm --force ${containerName}`, {
stdio: "ignore"
});
} catch {}
const realmJsonFilePath = await (async () => { const realmJsonFilePath = await (async () => {
if (cliCommandOptions.realmJsonFilePath !== undefined) { if (cliCommandOptions.realmJsonFilePath !== undefined) {
console.log( console.log(
@ -328,6 +322,12 @@ export async function command(params: { cliCommandOptions: CliCommandOptions })
accountThemePropertyPatch?.(); accountThemePropertyPatch?.();
try {
child_process.execSync(`docker rm --force ${containerName}`, {
stdio: "ignore"
});
} catch {}
const spawnArgs = [ const spawnArgs = [
"docker", "docker",
[ [