Skip to content

Commit 5046b9d

Browse files
committed
fix:Adding double quote to prevent globbing and word splitting.
Adding double quote to prevent globbing and word splitting.
1 parent 2a7feb7 commit 5046b9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

testing/run_cs_check.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ PROJECT_ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/.."
1919
DIR="${1:-$PROJECT_ROOT}"
2020

2121
# we run the script from PROJECT_ROOT
22-
cd $PROJECT_ROOT
22+
cd "$PROJECT_ROOT"
2323

2424
# install local version of php-cs-fixer 3.0 from composer.json
2525
composer -q install -d testing/
@@ -30,4 +30,4 @@ if [ -f "testing/vendor/bin/php-cs-fixer" ]; then
3030
PHP_CS_FIXER="testing/vendor/bin/php-cs-fixer"
3131
fi
3232

33-
$PHP_CS_FIXER fix --dry-run --diff --config="${PROJECT_ROOT}/.php-cs-fixer.dist.php" --path-mode=intersection $DIR
33+
$PHP_CS_FIXER fix --dry-run --diff --config="${PROJECT_ROOT}/.php-cs-fixer.dist.php" --path-mode=intersection "$DIR"

0 commit comments

Comments
 (0)