fix: if seed is false or 0 as a string, set it to false
This commit is contained in:
parent
98a91cc873
commit
bdbb090c7d
|
@ -51,6 +51,9 @@ if (!key) {
|
|||
}
|
||||
|
||||
let seed = process.env.MODULE_SEED;
|
||||
if (["0", "false"].includes(seed as string)) {
|
||||
seed = false as any;
|
||||
}
|
||||
if (!seed && seed === undefined) {
|
||||
// @ts-ignore
|
||||
seed = await prompts.prompts.password({
|
||||
|
|
Loading…
Reference in New Issue