From 71dd68096cd01ba8dc738dfb1ce7d6c12e53953b Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 3 Feb 2023 17:40:58 +0100 Subject: [PATCH] tell the user where we copied the key to Signed-off-by: Robin Appelman --- apps/encryption/lib/Command/LocateKey.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/encryption/lib/Command/LocateKey.php b/apps/encryption/lib/Command/LocateKey.php index 0d4a8d2fa7bc6..4e770b99583dd 100644 --- a/apps/encryption/lib/Command/LocateKey.php +++ b/apps/encryption/lib/Command/LocateKey.php @@ -129,8 +129,9 @@ protected function execute(InputInterface $input, OutputInterface $output): int if ($dryRun) { $output->writeln("Found working key at $workingKey"); } else { - $this->rootView->copy($workingKey, $this->repair->getKeyPath($user, $node)); - $output->writeln("Copied working key at $workingKey"); + $target = $this->repair->getKeyPath($user, $node); + $this->rootView->copy($workingKey, $target); + $output->writeln("Copied working key from $workingKey to $target"); } return 0; } else {