Skip to content

Commit

Permalink
tell the user where we copied the key to
Browse files Browse the repository at this point in the history
Signed-off-by: Robin Appelman <[email protected]>
  • Loading branch information
icewind1991 committed Feb 3, 2023
1 parent ec4fe1f commit 71dd680
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/encryption/lib/Command/LocateKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,9 @@ protected function execute(InputInterface $input, OutputInterface $output): int
if ($dryRun) {
$output->writeln("<info>Found working key at $workingKey</info>");
} else {
$this->rootView->copy($workingKey, $this->repair->getKeyPath($user, $node));
$output->writeln("<info>Copied working key at $workingKey</info>");
$target = $this->repair->getKeyPath($user, $node);
$this->rootView->copy($workingKey, $target);
$output->writeln("<info>Copied working key from $workingKey to $target</info>");
}
return 0;
} else {
Expand Down

0 comments on commit 71dd680

Please sign in to comment.