mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-07-20 13:53:30 +07:00
Handle exception in Update-PhpCAInfo in win32.ps1
This commit is contained in:
@ -50,7 +50,10 @@ try {
|
|||||||
Update-PhpCAInfo -Path $php_dir -Source CurrentUser
|
Update-PhpCAInfo -Path $php_dir -Source CurrentUser
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
Update-PhpCAInfo -Path $php_dir -Source Curl
|
try {
|
||||||
|
Update-PhpCAInfo -Path $php_dir -Source Curl
|
||||||
|
} catch {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if ([Version]$installed.Version -ge '7.4') {
|
if ([Version]$installed.Version -ge '7.4') {
|
||||||
Copy-Item "$dir\..\src\ext\php_pcov.dll" -Destination "$($installed.ExtensionsPath)\php_pcov.dll"
|
Copy-Item "$dir\..\src\ext\php_pcov.dll" -Destination "$($installed.ExtensionsPath)\php_pcov.dll"
|
||||||
|
Reference in New Issue
Block a user