Cover the page while looking at the repository

The look for a newer release shows the same box as an update, and the page
reloads when it is done.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-25 10:46:55 +01:00
co-authored by Claude Sonnet 5.5
parent 3881c623cf
commit da206a5237
3 changed files with 49 additions and 1 deletions
+2 -1
View File
@@ -49,7 +49,8 @@ func command(name string, args ...string) (string, error) {
return strings.TrimSpace(string(out)), err
}
func unitProperty(unit, prop string) string {
// unitProperty is a property of a systemd unit (replaced in tests).
var unitProperty = func(unit, prop string) string {
out, _ := command("systemctl", "show", "--value", "-p", prop, unit)
return out
}