Я запускаю 'composer install' на своем сервере, а затем использую функцию сценария для удаления всех подкаталогов с именем '.git', но я выполняю следующую ошибку композитора.
Delete all .git dirs
find: `vendor/ajbdev/authorizenet-php-api/.git': No such file or directory
find: `vendor/aura/installer-default/.git': No such file or directory
find: `vendor/buyplaytix/phantomjs-test/.git': No such file or directory
find: `vendor/composer/composer/.git': No such file or directory
find: `vendor/illuminate/support/Illuminate/Support/.git': No such file or directory
find: `vendor/illuminate/events/Illuminate/Events/.git': No such file or directory
find: `vendor/ircmaxell/password-compat/.git': No such file or directory
find: `vendor/predis/predis/.git': No such file or directory
find: `vendor/symfony/process/Symfony/Component/Process/.git': No such file or directory
find: `vendor/symfony/console/Symfony/Component/Console/.git': No such file or directory
find: `vendor/symfony/yaml/Symfony/Component/Yaml/.git': No such file or directory
find: `vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/.git': No such file or directory
find: `vendor/symfony/finder/Symfony/Component/Finder/.git': No such file or directory
find: `vendor/twig/twig/.git': No such file or directory
Script find vendor/*/ -name .git -type d -exec rm -rf {} \; handling the post-install-cmd event returned with an error
[RuntimeException]
Error Output: find: `vendor/ajbdev/authorizenet-php-api/.git': No such file or directory
find: `vendor/aura/installer-default/.git': No such file or directory
find: `vendor/buyplaytix/phantomjs-test/.git': No such file or directory
find: `vendor/composer/composer/.git': No such file or directory
find: `vendor/illuminate/support/Illuminate/Support/.git': No such file or directory
find: `vendor/illuminate/events/Illuminate/Events/.git': No such file or directory
find: `vendor/ircmaxell/password-compat/.git': No such file or directory
find: `vendor/predis/predis/.git': No such file or directory
find: `vendor/symfony/process/Symfony/Component/Process/.git': No such file or directory
find: `vendor/symfony/console/Symfony/Component/Console/.git': No such file or directory
find: `vendor/symfony/yaml/Symfony/Component/Yaml/.git': No such file or directory
find: `vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/.git': No such file or directory
find: `vendor/symfony/finder/Symfony/Component/Finder/.git': No such file or directory
find: `vendor/twig/twig/.git': No such file or directory
Я запускаю это с помощью следующей команды
"scripts": {
"post-update-cmd": ["echo Delete all .git dirs", "find vendor/*/ -name .git -type d -exec rm -rf {} \\;"],
"post-install-cmd": ["echo Delete all .git dirs", "find vendor/*/ -name .git -type d -exec rm -rf '{}' \\;"]
}
Может ли кто-нибудь помочь мне в этом, пожалуйста?