Revert "[ubuntu] Rework php installation (#3272)" (#3340)

This reverts commit b1f202e5f0.
This commit is contained in:
Mikhail Timofeev
2021-05-07 16:35:34 +03:00
committed by GitHub
parent 52d48bcbcd
commit a5ee51f72d
2 changed files with 10 additions and 11 deletions

View File

@@ -211,11 +211,10 @@ function Get-SbtVersion {
function Get-PHPVersions {
$result = Get-CommandResult "apt list --installed" -Multiline
$aptSourceRepo = Get-AptSourceRepository -PackageName "php"
$versionsList = $result.Output | Where-Object { $_ -match "^php\d+\.\d+/"} | ForEach-Object {
return $result.Output | Where-Object { $_ -match "^php\d+\.\d+/"} | ForEach-Object {
$_ -match "now (?<version>\d+\.\d+\.\d+)-" | Out-Null
$Matches.version }
return $versionsList + "(apt source repository: $aptSourceRepo)"
$Matches.version
}
}
function Get-ComposerVersion {