Update install.ps1
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
$ProgressPreference = 'SilentlyContinue'
|
$ProgressPreference = 'SilentlyContinue'
|
||||||
$v = $PSVersionTable.PSVersion
|
$v = $PSVersionTable.PSVersion
|
||||||
if ($v.Major -lt 5 -or ($v.Major -eq 5 -and $v.Minor -lt 1) -or ($PSVersionTable.PSEdition -eq 'Core' -and -not $IsWindows)) {
|
if ($v.Major -lt 5 -or ($v.Major -eq 5 -and $v.Minor -lt 1) -or ($PSVersionTable.PSEdition -eq 'Core' -and -not $IsWindows)) {
|
||||||
Write-Host 'This line installs Agent Hub on Windows, from PowerShell 5.1 or later. On Linux, run the page''s curl line.' -ForegroundColor Red
|
Write-Host 'This line installs Agent Hub on Windows, from PowerShell 5.1 or later. On Linux, run the curl line instead.' -ForegroundColor Red
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if ($PSVersionTable.PSEdition -ne 'Core') {
|
if ($PSVersionTable.PSEdition -ne 'Core') {
|
||||||
|
|||||||
Reference in New Issue
Block a user