Skip to content

Commit

Permalink
Only symlink top-level directories in LegacySrcSymlinkCommand (#138)
Browse files Browse the repository at this point in the history
(cherry picked from commit 21f6738)
  • Loading branch information
natanael89 authored and andrerom committed Jan 12, 2018
1 parent ecc6c3b commit 554a629
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bundle/Command/LegacySrcSymlinkCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ protected function linkSrcFolders(Filesystem $filesystem, $srcArg, $force, Outpu
// secondly handle sub folders in design and settings/siteaccess
$directories = ['design', 'settings/siteaccess'];
foreach ($directories as $directory) {
foreach (Finder::create()->directories()->in(["$srcArg/$directory"]) as $folder) {
foreach (Finder::create()->directories()->depth(0)->in(["$srcArg/$directory"]) as $folder) {
$folderName = $folder->getFilename();
if (!$force && $filesystem->exists("$legacyRootDir/$directory/$folderName")) {
continue;
Expand Down

0 comments on commit 554a629

Please sign in to comment.