diff --git a/CHANGELOG.md b/CHANGELOG.md index 00a38be..355e603 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ ## {{ UNRELEASED_VERSION }} - [{{ UNRELEASED_DATE }}]({{ UNRELEASED_LINK }}) +* Improved composer install script to default to latest stable * Fixed `mysqldump` warning for unknown option on MariaDB 11.4/11.8 [#237](https://github.com/lando/php/issues/237) * Updated to [@lando/nginx@1.6.0](https://github.com/lando/nginx/releases/tag/v1.6.0) diff --git a/scripts/install-composer.sh b/scripts/install-composer.sh index 3db228b..78854af 100755 --- a/scripts/install-composer.sh +++ b/scripts/install-composer.sh @@ -24,8 +24,10 @@ elif [ "$VERSION" = 'preview' ]; then php /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer --preview elif [ "$VERSION" = 'snapshot' ]; then php /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer --snapshot -else +elif [ -n "$VERSION" ]; then php /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer --version="$VERSION" +else + php /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer fi # Remove the setup script