fix: install Composer dependencies if vendor directory is empty (#491)

* fix: install Composer dependencies if vendor directory is empty

* Update frankenphp/docker-entrypoint.sh

Co-authored-by: Vincent <407859+vincentchalamon@users.noreply.github.com>

---------

Co-authored-by: Kévin Dunglas <kevin@dunglas.fr>
Co-authored-by: Vincent <407859+vincentchalamon@users.noreply.github.com>
This commit is contained in:
Borislav Kosun 2023-10-26 15:31:20 +03:00 committed by GitHub
parent 11b2807da9
commit ef8c7ad2a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,7 +22,7 @@ if [ "$1" = 'frankenphp' ] || [ "$1" = 'php' ] || [ "$1" = 'bin/console' ]; then
fi
fi
if [ ! -d 'vendor/' ]; then
if [ -z "$(ls -A 'vendor/' 2>/dev/null)" ]; then
composer install --prefer-dist --no-progress --no-interaction
fi