Skip to content

Commit 2b86074

Browse files
committed
Fix missing symlinks
1 parent e96be35 commit 2b86074

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/ComposerScripts.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,14 @@ public static function postDrupalScaffold() {
6464
// Symlink the libraries folder into the Drupal core git repo.
6565
static::makeSymlink('../../web/libraries', 'repos/drupal/libraries');
6666

67-
// Symlink the contrib profiles folder into the Drupal core git repo.
68-
static::makeSymlink('../../../web/profiles/contrib', 'repos/drupal/profiles/contrib');
67+
// Symlink external and custom folders into the Drupal core git repo.
68+
foreach (['modules', 'profiles', 'sites', 'themes'] as $dir) {
69+
foreach (scandir("web/$dir") as $sub) {
70+
if (!file_exists("repos/drupal/$dir/$sub") && is_dir("web/$dir/$sub")) {
71+
static::makeSymlink("../../../web/$dir/$sub", "repos/drupal/$dir/$sub");
72+
}
73+
}
74+
}
6975

7076
// Create folders for running tests.
7177
if (!file_exists('web/sites/simpletest')) {

0 commit comments

Comments
 (0)