Skip to content

Commit

Permalink
Change to direct input password value when using the same password
Browse files Browse the repository at this point in the history
  • Loading branch information
gnongs committed Jan 5, 2025
1 parent 2a43fac commit 1771821
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/commands/actions/KeySharesAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ export class KeySharesAction extends BaseAction {

for (const file of files) {
const isDir = (await fsp.stat(file)).isDirectory();
let keystoreFile = file;
let keystorePassword = '';
keystoreFile = file;
keystorePassword = this.args.password;

if (isDir) {
const dir = await fsp.opendir(file);
Expand All @@ -87,9 +87,6 @@ export class KeySharesAction extends BaseAction {
}
}
}
else {
keystorePassword = await fsp.readFile(this.args.password, 'utf-8');
}

keystoreSet.push({ keystoreFile, keystorePassword });
}
Expand Down

0 comments on commit 1771821

Please sign in to comment.