Update install.ps1

This commit is contained in:
2026-10-03 10:01:04 +02:00
parent f5a4f37ed5
commit 1f0e59cb08

View File

@@ -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') {