mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-21 11:29:29 +08:00
fix: ignore case of linux distro id
This commit is contained in:
parent
6235e83677
commit
0009da9585
@ -111,7 +111,7 @@ func parseOsRelease(osRelease string) *DistroInfo {
|
||||
}
|
||||
switch splitLine[0] {
|
||||
case "ID":
|
||||
osID = strings.Trim(splitLine[1], "\"")
|
||||
osID = strings.ToLower(strings.Trim(splitLine[1], "\""))
|
||||
case "NAME":
|
||||
osNAME = strings.Trim(splitLine[1], "\"")
|
||||
case "VERSION_ID":
|
||||
@ -120,7 +120,7 @@ func parseOsRelease(osRelease string) *DistroInfo {
|
||||
}
|
||||
|
||||
// Check distro name against list of distros
|
||||
switch strings.ToLower(osID) {
|
||||
switch osID {
|
||||
case "fedora":
|
||||
result.Distribution = Fedora
|
||||
case "centos":
|
||||
|
Loading…
Reference in New Issue
Block a user