From 8955c75cec46e0d08ecf025d4d67c9012db4b594 Mon Sep 17 00:00:00 2001 From: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> Date: Wed, 1 Oct 2025 22:01:17 -0300 Subject: [PATCH] fix: replace > by cp to don't change the file owner When is eexcuting a composer command as root, by this new way don't will change the file owner because will preserve the owner of original file. Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 062d0aaba..94f3fe640 100644 --- a/composer.json +++ b/composer.json @@ -41,11 +41,11 @@ ], "post-install-cmd": [ "@composer bin all install --ansi", - "php -d error_reporting=E_ALL\\&~E_DEPRECATED\\&~E_USER_DEPRECATED vendor-bin/php-scoper/vendor/humbug/php-scoper/bin/php-scoper add-prefix --force && > lib/Vendor/.gitkeep", + "php -d error_reporting=E_ALL\\&~E_DEPRECATED\\&~E_USER_DEPRECATED vendor-bin/php-scoper/vendor/humbug/php-scoper/bin/php-scoper add-prefix --force && cp l10n/.gitkeep lib/Vendor/.gitkeep", "composer dump-autoload -o" ], "post-update-cmd": [ - "php -d error_reporting=E_ALL\\&~E_DEPRECATED\\&~E_USER_DEPRECATED vendor-bin/php-scoper/vendor/humbug/php-scoper/bin/php-scoper add-prefix --force && > lib/Vendor/.gitkeep", + "php -d error_reporting=E_ALL\\&~E_DEPRECATED\\&~E_USER_DEPRECATED vendor-bin/php-scoper/vendor/humbug/php-scoper/bin/php-scoper add-prefix --force && cp l10n/.gitkeep lib/Vendor/.gitkeep", "composer dump-autoload" ], "test:unit": "vendor/bin/phpunit -c tests/php/phpunit.xml --no-coverage --colors=always --fail-on-warning --fail-on-risky --display-deprecations --display-phpunit-deprecations",