diff --git a/Scripts/Install/MergeEnvTemplate.ts b/Scripts/Install/MergeEnvTemplate.ts index 6649cb5f04..23adca6f27 100644 --- a/Scripts/Install/MergeEnvTemplate.ts +++ b/Scripts/Install/MergeEnvTemplate.ts @@ -1,6 +1,5 @@ // This script merges config.env.tpl to config.env -import logger from 'CommonServer/Utils/Logger'; import fs from 'fs'; const init: Function = (): void => { @@ -40,6 +39,4 @@ const init: Function = (): void => { fs.writeFileSync('./config.env', linesInEnv.join('\n')); }; -init().catch((err: Error) => { - logger.error(err); -}); +await init(); diff --git a/Scripts/Install/ReplaceValueInConfig.ts b/Scripts/Install/ReplaceValueInConfig.ts index f898bd439f..4009124624 100644 --- a/Scripts/Install/ReplaceValueInConfig.ts +++ b/Scripts/Install/ReplaceValueInConfig.ts @@ -1,6 +1,5 @@ // This script merges config.env.tpl to config.env -import logger from 'CommonServer/Utils/Logger'; import fs from 'fs'; const init: Function = (): void => { @@ -51,6 +50,4 @@ const init: Function = (): void => { fs.writeFileSync('./config.env', linesToRender.join('\n')); }; -init().catch((err: Error) => { - logger.error(err); -}); +await init();