From 8ca96b3ff175053710679d92c39f787f399f3cad Mon Sep 17 00:00:00 2001 From: leemyong pakvn <3759923+leemyongpakvn@users.noreply.github.com> Date: Thu, 28 Sep 2023 20:28:40 +0700 Subject: [PATCH] try the new style rm -rf --- tests/php/phpstan.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/php/phpstan.sh b/tests/php/phpstan.sh index 9db8942..e234e7c 100755 --- a/tests/php/phpstan.sh +++ b/tests/php/phpstan.sh @@ -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/blockreassurance +docker exec -t --user root temp-ps sh -c 'find /var/www/html/modules/ps_facetedsearch -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