From 7fb6a15878d50407f4424c44a9b4129f5fe9db3c Mon Sep 17 00:00:00 2001 From: leemyong pakvn <3759923+leemyongpakvn@users.noreply.github.com> Date: Mon, 11 Sep 2023 09:49:12 +0700 Subject: [PATCH] rm with --user root --- tests/phpstan.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpstan.sh b/tests/phpstan.sh index d805a55..69523b6 100755 --- a/tests/phpstan.sh +++ b/tests/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/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