From ef8c7ad2a20020a796b790da76331916d2b9a685 Mon Sep 17 00:00:00 2001 From: Borislav Kosun Date: Thu, 26 Oct 2023 15:31:20 +0300 Subject: [PATCH] fix: install Composer dependencies if vendor directory is empty (#491) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 Co-authored-by: Vincent <407859+vincentchalamon@users.noreply.github.com> --- frankenphp/docker-entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frankenphp/docker-entrypoint.sh b/frankenphp/docker-entrypoint.sh index 0c7063e..bdddc3a 100755 --- a/frankenphp/docker-entrypoint.sh +++ b/frankenphp/docker-entrypoint.sh @@ -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