mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-27 06:52:50 -05:00
doctor: use builtin config/cache dir functions
This commit is contained in:
@@ -29,5 +29,5 @@ func IsServiceActive(name string, userService bool) bool {
|
||||
args = []string{"--user", "is-active", name}
|
||||
}
|
||||
output, _ := exec.Command("systemctl", args...).Output()
|
||||
return strings.TrimSpace(string(output)) == "active"
|
||||
return strings.EqualFold(strings.TrimSpace(string(output)), "active")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user