From c4317135df5ace3a6909de29e0d18dbcb2125ab1 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Tue, 14 Jan 2020 12:06:52 +0530 Subject: [PATCH] Disable composer process-timeout --- src/scripts/darwin.sh | 1 + src/scripts/linux.sh | 3 +++ src/scripts/win32.ps1 | 1 + 3 files changed, 5 insertions(+) diff --git a/src/scripts/darwin.sh b/src/scripts/darwin.sh index 7c64351b..8a39ac03 100644 --- a/src/scripts/darwin.sh +++ b/src/scripts/darwin.sh @@ -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:?}" diff --git a/src/scripts/linux.sh b/src/scripts/linux.sh index 695facde..816466e1 100644 --- a/src/scripts/linux.sh +++ b/src/scripts/linux.sh @@ -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() { diff --git a/src/scripts/win32.ps1 b/src/scripts/win32.ps1 index 25a07a7f..c415256b 100644 --- a/src/scripts/win32.ps1 +++ b/src/scripts/win32.ps1 @@ -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) {