Skip to content

Commit

Permalink
fixed "Double quote to prevent globbing and word splitting."
Browse files Browse the repository at this point in the history
  • Loading branch information
bbakalov committed May 15, 2024
1 parent 7b8fbb6 commit 2462bbc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion compose/bin/test/unit
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ if [[ $1 == "-h" || $1 == "--help" ]]; then
elif [[ -z $1 ]]; then
echo -e "Please specify a path to your test or folder with tests (ex. app/code/Vendor/Module)"
else
bin/php vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist /var/www/html/$1
bin/php vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist /var/www/html/"$1"
fi
2 changes: 1 addition & 1 deletion compose/bin/test/unit-coverage
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ if [[ $1 == "-h" || $1 == "--help" ]]; then
elif [[ -z $1 ]]; then
echo -e "Please specify a path to your test or folder with tests (ex. app/code/Vendor/Module)"
else
bin/php -d xdebug.mode=coverage vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist --coverage-html ./dev/tests/unit/report /var/www/html/$1
bin/php -d xdebug.mode=coverage vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist --coverage-html ./dev/tests/unit/report /var/www/html/"$1"
echo -e "Report path: dev/tests/unit/report"
fi
2 changes: 1 addition & 1 deletion compose/bin/test/unit-xdebug
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ if [[ $1 == "-h" || $1 == "--help" ]]; then
elif [[ -z $1 ]]; then
echo -e "Please specify a path to your test or folder with tests (ex. app/code/Vendor/Module)"
else
bin/php -d xdebug.start_with_request=yes vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist /var/www/html/$1
bin/php -d xdebug.start_with_request=yes vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist /var/www/html/"$1"
fi

0 comments on commit 2462bbc

Please sign in to comment.