Skip to content

Commit de1eb04

Browse files
authored
symlink project with underscores instead of hyphens (#35)
Co-authored-by: tyler36 <7234392+tyler36@users.noreply.github.com>
1 parent d950078 commit de1eb04

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

commands/web/symlink-project

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,8 @@ export _WEB_ROOT=$DDEV_DOCROOT
1212
#todo use more dynamic ref.
1313
cd "$DDEV_COMPOSER_ROOT" || exit
1414
curl -OL https://git.drupalcode.org/project/gitlab_templates/-/raw/1.0.x/scripts/symlink_project.php
15-
php symlink_project.php "$DDEV_SITENAME"
15+
16+
# Symlink name using underscores.
17+
# @see https://www.drupal.org/docs/develop/creating-modules/naming-and-placing-your-drupal-module
18+
php symlink_project.php "${DDEV_SITENAME//-/_}"
1619
rm -f symlink_project.php

0 commit comments

Comments
 (0)