提交图
3 次代码提交
作者 SHA1 备注 提交日期
朱四宏 9b792f5378 [cli-release-discovery][iter-2] test(install): keep host-safety regression offline
Installer Tests / powershell-discovery (pull_request) Successful in 9s
Installer Tests / bash-discovery (pull_request) Successful in 2s
2026-11-14 22:27:26 +08:00
朱四宏 796948d384 [cli-release-discovery][iter-1] fix(install): select stable CLI releases and verify platform assets
Installer Tests / bash-discovery (pull_request) Successful in 1s
Installer Tests / powershell-discovery (pull_request) Successful in 8s
2026-11-14 22:26:21 +08:00
octopus-agent fbac1003f0 fix(install): do not kill PowerShell host under 'irm | iex'
The Windows installer used 'exit' inside Install-Octopus. When run via
'irm <url> | iex' (the documented one-liner), there is no script scope, so
'exit' terminates the entire PowerShell host process and closes the terminal
window instead of just ending the install. Most users hit this via the
'already installed' branch (exit 0).

Replace 'exit' with:
  - 'return' for the success (already-installed) path
  - 'throw' for error paths (still non-zero exit when run as .\install.ps1
    in CI; prints the error and returns to the prompt under iex)

Add tests/test.ps1 as a regression guard (source-verification + a behavioral
test proving iex no longer terminates the host).
2026-07-02 09:10:03 +08:00