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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user