diff --git a/src/Symfony/Bundle/FrameworkBundle/Command/AssetsInstallCommand.php b/src/Symfony/Bundle/FrameworkBundle/Command/AssetsInstallCommand.php index 94daa82cc9a26..d68b76be882d2 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Command/AssetsInstallCommand.php +++ b/src/Symfony/Bundle/FrameworkBundle/Command/AssetsInstallCommand.php @@ -78,6 +78,11 @@ protected function execute(InputInterface $input, OutputInterface $output) // Create the bundles directory otherwise symlink will fail. $bundlesDir = $targetArg.'/bundles/'; + + if ($filesystem->exists($bundlesDir)) { + $filesystem->remove($bundlesDir); + } + $filesystem->mkdir($bundlesDir, 0777); // relative implies symlink