mirror of
https://github.com/PretendoNetwork/account.git
synced 2024-05-17 04:11:03 -04:00
Fixed path undefined error in generate-keys with account type
This commit is contained in:
parent
540c11f4aa
commit
cf292ed661
|
@ -47,7 +47,13 @@ async function main() {
|
|||
return;
|
||||
}
|
||||
|
||||
const path = `${__dirname}/certs/${type}/${name}`;
|
||||
let path;
|
||||
|
||||
if (type === 'account') {
|
||||
path = `${__dirname}/certs/service/account`;
|
||||
} else {
|
||||
path = `${__dirname}/certs/${type}/${name}`;
|
||||
}
|
||||
|
||||
if (fs.pathExistsSync(path)) {
|
||||
const overwrite = await yesno({
|
||||
|
|
Loading…
Reference in a new issue