Skip to content

Commit f6e564e

Browse files
authored
Fix #145. Avoid symlink recursion (#146)
* Fix #145. Avoid symlink recursion * Ignore .idea
1 parent bfa3f08 commit f6e564e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

commands/web/symlink-project

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ cd "$DDEV_COMPOSER_ROOT" || exit
1515
curl -OL https://git.drupalcode.org/project/gitlab_templates/-/raw/default-ref/scripts/symlink_project.php
1616

1717
# Suppress a warning.
18-
export PROJECT_FILES=$(ls -A)
18+
PROJECT_FILES=$(ls -A --ignore="web" --ignore="vendor" --ignore="symlink_project.php" --ignore=".ddev" --ignore=".idea")
19+
export PROJECT_FILES
1920
# Symlink name using underscores.
2021
# @see https://www.drupal.org/docs/develop/creating-modules/naming-and-placing-your-drupal-module
2122
php symlink_project.php "${DDEV_SITENAME//-/_}"

0 commit comments

Comments
 (0)