From c4bad65814d1c1111e1eb3e2d8c3344f537943d9 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Fri, 20 Feb 2026 16:10:54 +0000 Subject: [PATCH] fix: remove --quiet flag from composer config home command The --quiet flag suppresses all output including the config value itself, causing COMPOSER_HOME detection to fail when not pre-set. Removing --quiet while keeping 2>/dev/null allows the value to be captured while still suppressing stderr warnings. --- scripts/install-composer.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install-composer.sh b/scripts/install-composer.sh index d287c59..c2872ca 100755 --- a/scripts/install-composer.sh +++ b/scripts/install-composer.sh @@ -34,7 +34,7 @@ php -r "unlink('/tmp/composer-setup.php');" # If upgrading from Composer 1 to 2, remove the prestissimo plugin # which is incompatible with Composer 2 (parallel downloads are built-in now). # Use COMPOSER_HOME to find the right global composer.json for the current user. -COMPOSER_HOME="${COMPOSER_HOME:-$(composer global config home --quiet 2>/dev/null || echo '')}" +COMPOSER_HOME="${COMPOSER_HOME:-$(composer global config home 2>/dev/null || echo '')}" if [ -n "$COMPOSER_HOME" ] && [ -f "$COMPOSER_HOME/composer.json" ]; then if composer --version 2>/dev/null | grep -qE "Composer (version )?2\."; then composer global remove hirak/prestissimo 2>/dev/null || true