Fix logical error
This commit is contained in:
parent
72e321aa32
commit
1ebf97871b
@ -45,21 +45,13 @@ export function keycloakify(params?: Params) {
|
|||||||
break run_post_build_script_case;
|
break run_post_build_script_case;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (postBuild === undefined) {
|
|
||||||
break run_post_build_script_case;
|
|
||||||
}
|
|
||||||
|
|
||||||
const buildContext = JSON.parse(envValue) as BuildContext;
|
const buildContext = JSON.parse(envValue) as BuildContext;
|
||||||
|
|
||||||
const cwd = process.cwd();
|
|
||||||
|
|
||||||
process.chdir(
|
process.chdir(
|
||||||
pathJoin(buildContext.keycloakifyBuildDirPath, "resources")
|
pathJoin(buildContext.keycloakifyBuildDirPath, "resources")
|
||||||
);
|
);
|
||||||
|
|
||||||
await postBuild(buildContext);
|
await postBuild?.(buildContext);
|
||||||
|
|
||||||
process.chdir(cwd);
|
|
||||||
|
|
||||||
process.exit(0);
|
process.exit(0);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user