fix(manjaro): read lsb-release

relates to #1696
This commit is contained in:
Jan De Dobbeleer 2022-02-06 10:32:16 +01:00 committed by Jan De Dobbeleer
parent 5daff6b934
commit 8f3bfd674b

View file

@ -68,8 +68,8 @@ func (env *ShellEnvironment) Platform() string {
platform, _, _, _ = host.PlatformInformation()
if platform == "arch" {
// validate for Manjaro
lsbInfo := env.FileContent("/etc/os-release")
if strings.Contains(lsbInfo, "Manjaro") {
lsbInfo := env.FileContent("/etc/lsb-release")
if strings.Contains(strings.ToLower(lsbInfo), "manjaro") {
platform = "manjaro"
}
}