fix install script

This commit is contained in:
Simon Larsen
2022-11-09 18:17:22 +00:00
parent 50f9569da5
commit aac2a91a22
2 changed files with 6 additions and 4 deletions

View File

@@ -3,7 +3,12 @@
const fs: any = require('fs');
const init: Function = (): void => {
const env: string = fs.readFileSync('./config.env', 'utf8');
let env: string = "";
try {
env = fs.readFileSync('./config.env', 'utf8');
} catch (err) {
// do nothing.
}
const envValToReplace: string | undefined = process.argv[2];
if (!envValToReplace) {