Disable composer process-timeout

This commit is contained in:
Shivam Mathur 2020-01-14 12:06:52 +05:30
parent a2dd688679
commit c4317135df
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A
3 changed files with 5 additions and 0 deletions

View File

@ -53,6 +53,7 @@ add_tool() {
tool=$2
if [ "$tool" = "composer" ]; then
brew install composer >/dev/null 2>&1
composer -q global config process-timeout 0
else
if [ ! -e /usr/local/bin/"$tool" ]; then
rm -rf /usr/local/bin/"${tool:?}"

View File

@ -80,6 +80,9 @@ add_tool() {
else
add_log "$cross" "$tool" "Could not setup $tool"
fi
if [ "$tool" = "composer" ]; then
composer -q global config process-timeout 0
fi
}
add_composer_tool() {

View File

@ -91,6 +91,7 @@ Function Add-Tool() {
)
if($tool -eq "composer") {
Install-Composer -Scope System -Path $php_dir -PhpPath $php_dir
composer -q global config process-timeout 0
Add-Log $tick $tool "Added"
} else {
if (Test-Path $php_dir\$tool) {