Skip to content

Commit

Permalink
move SUSE related distros to separate value
Browse files Browse the repository at this point in the history
  • Loading branch information
alastairlundy committed May 6, 2024
1 parent e82d7a6 commit 8737f27
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion PlatformKit/Platforms/Linux/LinuxAnalyzer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,15 @@ public static LinuxDistroBase GetDistroBase(LinuxOsRelease linuxOsRelease)
{
return LinuxDistroBase.Fedora;
}
if (identifierLike.Contains("rhel") || identifierLike.Contains("oracle") || identifierLike.Contains("centos") || identifierLike.Contains("suse"))
if (identifierLike.Contains("rhel") || identifierLike.Contains("oracle") || identifierLike.Contains("centos"))
{
return LinuxDistroBase.RHEL;
}

if (identifierLike.Contains("suse"))
{
return LinuxDistroBase.SUSE;
}

return LinuxDistroBase.NotDetected;
}
Expand Down

0 comments on commit 8737f27

Please sign in to comment.