Fix composer config syntax

This commit is contained in:
Shivam Mathur 2021-02-22 11:24:41 +05:30
parent 5520fdb61a
commit 1ecc5fdca3
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A
3 changed files with 6 additions and 6 deletions

View File

@ -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
}

View File

@ -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
}

View File

@ -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
}
}