feat(os): support manjaro linux

resolves #1696
This commit is contained in:
Jan De Dobbeleer 2022-02-05 17:43:49 +01:00 committed by Jan De Dobbeleer
parent 6fcf8c0ce3
commit d94a0db0a9

View file

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