fix: if seed is false or 0 as a string, set it to false

This commit is contained in:
Derrick Hammer 2023-09-02 09:55:15 -04:00
parent 98a91cc873
commit bdbb090c7d
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 3 additions and 0 deletions

View File

@ -51,6 +51,9 @@ if (!key) {
} }
let seed = process.env.MODULE_SEED; let seed = process.env.MODULE_SEED;
if (["0", "false"].includes(seed as string)) {
seed = false as any;
}
if (!seed && seed === undefined) { if (!seed && seed === undefined) {
// @ts-ignore // @ts-ignore
seed = await prompts.prompts.password({ seed = await prompts.prompts.password({