Fix typo in environment checker (#7547)
Fix error in environment checking logic for RedHat family.
This commit is contained in:
parent
96b2c83c59
commit
5232bb4890
|
@ -158,7 +158,7 @@ function Get-EnvironmentInformation
|
||||||
$environment.IsDebian -or
|
$environment.IsDebian -or
|
||||||
$environment.IsUbuntu -or
|
$environment.IsUbuntu -or
|
||||||
$environmment.IsRedHatFamily -or
|
$environmment.IsRedHatFamily -or
|
||||||
$environmment.IsSUSEFamily)
|
$environment.IsSUSEFamily)
|
||||||
) {
|
) {
|
||||||
throw "The current OS : $($LinuxInfo.ID) is not supported for building PowerShell."
|
throw "The current OS : $($LinuxInfo.ID) is not supported for building PowerShell."
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue