mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-09-16 17:54:10 +07:00
Fix check in add_path
Add composer_bin to the PATH after a tool is added using composer
This commit is contained in:
@ -23,7 +23,6 @@ Function Edit-ComposerConfig() {
|
||||
Set-Content -Path $composer_json -Value "{}"
|
||||
}
|
||||
Add-EnvPATH $src\configs\composer.env
|
||||
Add-Path $composer_bin
|
||||
if (Test-Path env:COMPOSER_TOKEN) {
|
||||
Add-Env COMPOSER_AUTH ('{"github-oauth": {"github.com": "' + $env:COMPOSER_TOKEN + '"}}')
|
||||
}
|
||||
@ -176,6 +175,7 @@ Function Add-ComposertoolHelper() {
|
||||
Remove-Item -Path $composer_lock -Force
|
||||
}
|
||||
composer global require $prefix$release $composer_args >$null 2>&1
|
||||
Add-Path $composer_bin
|
||||
return composer global show $prefix$tool 2>&1 | findstr '^versions'
|
||||
} else {
|
||||
$release_stream = [System.IO.MemoryStream]::New([System.Text.Encoding]::ASCII.GetBytes($release))
|
||||
|
Reference in New Issue
Block a user