From 6f03b3df129055121503adb17dd39c7293fa0842 Mon Sep 17 00:00:00 2001 From: wizhippo Date: Mon, 31 Aug 2015 12:36:12 -0400 Subject: [PATCH] Fix EZP-24748: targetDir not adjusted for chdir --- bundle/Command/LegacyWrapperInstallCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundle/Command/LegacyWrapperInstallCommand.php b/bundle/Command/LegacyWrapperInstallCommand.php index ddf702cd..34b5f91f 100644 --- a/bundle/Command/LegacyWrapperInstallCommand.php +++ b/bundle/Command/LegacyWrapperInstallCommand.php @@ -78,7 +78,7 @@ protected function execute(InputInterface $input, OutputInterface $output) // We use a custom iterator to ignore VCS files $currentDir = getcwd(); chdir(realpath($targetArg)); - $filesystem->mirror($originDir, $targetDir, Finder::create()->in($originDir)); + $filesystem->mirror($originDir, $folder, Finder::create()->in($originDir)); chdir($currentDir); } }