From abefdb50ee57fd37a7308f58f229e2d667348ea6 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Tue, 2 Feb 2021 06:13:50 +0530 Subject: [PATCH] Fix composer config syntax --- src/scripts/common.sh | 4 ++-- src/scripts/win32.ps1 | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/scripts/common.sh b/src/scripts/common.sh index db3f17f2..c4804ba7 100644 --- a/src/scripts/common.sh +++ b/src/scripts/common.sh @@ -191,10 +191,10 @@ configure_composer() { add_log "$cross" "composer" "Could not download composer" exit 1 fi - composer -q global config process-timeout 0 + composer -q config -g process-timeout 0 echo "$composer_bin" >> "$GITHUB_PATH" if [ -n "$COMPOSER_TOKEN" ]; then - composer -q global config github-oauth.github.com "$COMPOSER_TOKEN" + composer -q config -g github-oauth.github.com "$COMPOSER_TOKEN" fi } diff --git a/src/scripts/win32.ps1 b/src/scripts/win32.ps1 index bbdc192d..f769d22a 100644 --- a/src/scripts/win32.ps1 +++ b/src/scripts/win32.ps1 @@ -201,10 +201,10 @@ Function Edit-ComposerConfig() { Add-Log "$cross" "composer" "Could not download composer" exit 1; } - composer -q global config process-timeout 0 + composer -q config -g process-timeout 0 Write-Output $composer_bin | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 if (Test-Path env:COMPOSER_TOKEN) { - composer -q global config github-oauth.github.com $env:COMPOSER_TOKEN + composer -q config -g github-oauth.github.com $env:COMPOSER_TOKEN } }