Skip to content

Commit

Permalink
Merge pull request #36 from leemyongpakvn/improved-phpstan-script
Browse files Browse the repository at this point in the history
Fix removing previous module files in PHPStan tests
  • Loading branch information
nicosomb committed Sep 20, 2023
2 parents ced073b + 7fb6a15 commit f4a9f28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/phpstan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ docker run -tid --rm -v ps-volume:/var/www/html --name temp-ps prestashop/presta
# Clear previous instance of the module in the PrestaShop volume
echo "Clear previous module"

docker exec -tid temp-ps rm -rf /var/www/html/modules/pagesnotfound
docker exec -t --user root temp-ps sh -c 'find /var/www/html/modules/pagesnotfound -type f -exec rm {} +'

# Run a container for PHPStan, having access to the module content and PrestaShop sources.
# This tool is outside the composer.json because of the compatibility with PHP 5.6
Expand Down

0 comments on commit f4a9f28

Please sign in to comment.