Skip to content

Commit 38d246d

Browse files
tyler36weitzman
andauthored
prevent globbing and word splitting (#1)
Co-authored-by: tyler36 <7234392+tyler36@users.noreply.github.com> Co-authored-by: Moshe Weitzman <weitzman@tejasa.com>
1 parent 84bd729 commit 38d246d

File tree

6 files changed

+8
-9
lines changed

6 files changed

+8
-9
lines changed

commands/web/eslint

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@
88
## ProjectTypes: drupal8,drupal9,drupal10
99
## ExecRaw: true
1010

11-
if yarn --cwd $DDEV_DOCROOT/core eslint --version >/dev/null ; then
12-
yarn --cwd $DDEV_DOCROOT/core --config .eslintrc.legacy.json eslint ../modules/custom/**/*.js "$@"
11+
if yarn --cwd "$DDEV_DOCROOT/core" eslint --version >/dev/null ; then
12+
yarn --cwd "$DDEV_DOCROOT/core" --config .eslintrc.legacy.json eslint ../modules/custom/**/*.js "$@"
1313
else
1414
echo "eslint is not available. You may need to 'ddev yarn --cwd $DDEV_DOCROOT/core install'"
1515
exit 1
1616
fi
17-

commands/web/expand-composer-json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ export _WEB_ROOT=$DDEV_DOCROOT
1414
[[ $DDEV_PROJECT_TYPE == "drupal8" ]] && export _TARGET_CORE=^8
1515
cd "$DDEV_COMPOSER_ROOT" || exit
1616
curl -OL https://git.drupalcode.org/project/gitlab_templates/-/raw/1.0.x/scripts/expand_composer_json.php
17-
php expand_composer_json.php $DDEV_SITENAME
17+
php expand_composer_json.php "$DDEV_SITENAME"
1818
rm -f expand_composer_json.php

commands/web/nightwatch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
## ProjectTypes: drupal8,drupal9,drupal10
99
## ExecRaw: true
1010

11-
yarn --cwd $DDEV_DOCROOT/core test:nightwatch $DDEV_COMPOSER_ROOT/$DDEV_DOCROOT/modules/custom/ "$@"
11+
yarn --cwd "$DDEV_DOCROOT/core" test:nightwatch "$DDEV_COMPOSER_ROOT/$DDEV_DOCROOT/modules/custom/" "$@"

commands/web/poser

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
## ExecRaw: true
1010

1111
export COMPOSER=composer.contrib.json
12-
.ddev/commands/web/expand-composer-json $DDEV_PROJECT_NAME
12+
.ddev/commands/web/expand-composer-json "$DDEV_PROJECT_NAME"
1313
composer install
1414
rm composer.contrib.json composer.contrib.lock

commands/web/stylelint

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
## ProjectTypes: drupal8,drupal9,drupal10
99
## ExecRaw: true
1010

11-
if yarn --cwd $DDEV_DOCROOT/core stylelint --version >/dev/null ; then
12-
yarn --color --cwd $DDEV_DOCROOT/core --config ./.stylelintrc.json stylelint ../modules/custom/**/*.css "$@"
11+
if yarn --cwd "$DDEV_DOCROOT/core" stylelint --version >/dev/null ; then
12+
yarn --color --cwd "$DDEV_DOCROOT/core" --config ./.stylelintrc.json stylelint ../modules/custom/**/*.css "$@"
1313
else
1414
echo "stylelint is not available. You may need to 'ddev yarn --cwd $DDEV_DOCROOT/core install'"
1515
exit 1

commands/web/symlink-project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ 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+
php symlink_project.php "$DDEV_SITENAME"
1616
rm -f symlink_project.php

0 commit comments

Comments
 (0)