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 tool=$2
if [ "$tool" = "composer" ]; then if [ "$tool" = "composer" ]; then
brew install composer >/dev/null 2>&1 brew install composer >/dev/null 2>&1
composer -q global config process-timeout 0
else else
if [ ! -e /usr/local/bin/"$tool" ]; then if [ ! -e /usr/local/bin/"$tool" ]; then
rm -rf /usr/local/bin/"${tool:?}" rm -rf /usr/local/bin/"${tool:?}"

View File

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

View File

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