[Ubuntu] do not add homebrew to $PATH (#6240)

This commit is contained in:
Mikhail Koliada
2022-09-22 18:07:12 +02:00
committed by GitHub
parent 641fd77b4e
commit 9efcd841b9
4 changed files with 18 additions and 10 deletions

View File

@@ -149,7 +149,7 @@ function Get-LernaVersion {
}
function Get-HomebrewVersion {
$result = Get-CommandResult "brew -v"
$result = Get-CommandResult "/home/linuxbrew/.linuxbrew/bin/brew -v"
$result.Output -match "Homebrew (?<version>\d+\.\d+\.\d+)" | Out-Null
$version = $Matches.version
return "Homebrew $version"