From 1ecc5fdca33b1a253cb9cbc6fad717731c3cd6bf Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Mon, 22 Feb 2021 11:24:41 +0530 Subject: [PATCH] Fix composer config syntax --- src/scripts/darwin.sh | 4 ++-- src/scripts/linux.sh | 4 ++-- src/scripts/win32.ps1 | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/scripts/darwin.sh b/src/scripts/darwin.sh index d0852f88..5f157a93 100644 --- a/src/scripts/darwin.sh +++ b/src/scripts/darwin.sh @@ -146,10 +146,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/linux.sh b/src/scripts/linux.sh index 0a1d7ff9..467b1586 100644 --- a/src/scripts/linux.sh +++ b/src/scripts/linux.sh @@ -155,10 +155,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 cfd5b401..0f884149 100644 --- a/src/scripts/win32.ps1 +++ b/src/scripts/win32.ps1 @@ -155,10 +155,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 } }