mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-23 04:11:06 +07:00
Disable composer process-timeout
This commit is contained in:
parent
a2dd688679
commit
c4317135df
@ -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:?}"
|
||||||
|
@ -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() {
|
||||||
|
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user