tweak(tui): update banner emits the short domain install command
recommendedUpdateCommand() used to produce a raw.github URL which is two redirects off the domain the rest of the project hard-codes. The update-available banner in the TUI now matches the README and website install snippets: curl -fsSL https://zot.patriceckhart.com/install.sh | bash iwr -useb https://zot.patriceckhart.com/install.ps1 | iex Same surface (the domain 301s straight to raw.githubusercontent via proxy.ts on the site) so users keep working even if we later move the scripts. No functional behavior change.
- commit
- 5a70030bb6d6948aa99c0114b93c483f329ad13c
- author
- patriceckhart · · 2026-04-20 15:47 UTC
- parent
- 9d0b1d0
- signature
- unsigned
- refs
- tag: v0.0.72
1 file · +5 -4
M internal/agent/modes/update_banner.go +5 -4
| @@ -48,11 +48,12 @@ func renderUpdateBanner(th tui.Theme, info UpdateInfo, width int) []string { | |||
| 48 | 48 | } | |
| 49 | 49 | ||
| 50 | 50 | // recommendedUpdateCommand returns the one-liner appropriate for the | |
| 51 | - | // user's platform. All three point at the public install scripts so a | |
| 52 | - | // single command updates in place. | |
| 51 | + | // user's platform. Points at zot.patriceckhart.com, which 301s to | |
| 52 | + | // the raw install scripts on github — same surface, stable short | |
| 53 | + | // URL that's safe to hard-code even if the scripts later move. | |
| 53 | 54 | func recommendedUpdateCommand() string { | |
| 54 | 55 | if runtime.GOOS == "windows" { | |
| 55 | - | return `iwr -useb https://raw.githubusercontent.com/patriceckhart/zot/main/install.ps1 | iex` | |
| 56 | + | return `iwr -useb https://zot.patriceckhart.com/install.ps1 | iex` | |
| 56 | 57 | } | |
| 57 | - | return `curl -fsSL https://raw.githubusercontent.com/patriceckhart/zot/main/install.sh | bash` | |
| 58 | + | return `curl -fsSL https://zot.patriceckhart.com/install.sh | bash` | |
| 58 | 59 | } | |
| @@ -48,11 +48,12 @@ func renderUpdateBanner(th tui.Theme, info UpdateInfo, width int) []string { | |||||
| 48 | } | 48 | } | ||
| 49 | 49 | ||||
| 50 | // recommendedUpdateCommand returns the one-liner appropriate for the | 50 | // recommendedUpdateCommand returns the one-liner appropriate for the | ||
| 51 | - | // user's platform. All three point at the public install scripts so a | 51 | + | // user's platform. Points at zot.patriceckhart.com, which 301s to |
| 52 | - | // single command updates in place. | 52 | + | // the raw install scripts on github — same surface, stable short |
| 53 | + | // URL that's safe to hard-code even if the scripts later move. | |||
| 53 | func recommendedUpdateCommand() string { | 54 | func recommendedUpdateCommand() string { | ||
| 54 | if runtime.GOOS == "windows" { | 55 | if runtime.GOOS == "windows" { | ||
| 55 | - | return `iwr -useb https://raw.githubusercontent.com/patriceckhart/zot/main/install.ps1 | iex` | 56 | + | return `iwr -useb https://zot.patriceckhart.com/install.ps1 | iex` |
| 56 | } | 57 | } | ||
| 57 | - | return `curl -fsSL https://raw.githubusercontent.com/patriceckhart/zot/main/install.sh | bash` | 58 | + | return `curl -fsSL https://zot.patriceckhart.com/install.sh | bash` |
| 58 | } | 59 | } | ||