Don't nag linux x86 users to switch to net core

This commit is contained in:
ta264 2020-12-02 18:20:11 +00:00
parent 94b94041a8
commit 3e1cfe0033
1 changed files with 6 additions and 0 deletions

View File

@ -36,6 +36,12 @@ namespace NzbDrone.Core.HealthCheck.Checks
return new HealthCheck(GetType());
}
// Don't warn on linux x86 - we don't build x86 net core
if (OsInfo.IsLinux && RuntimeInformation.ProcessArchitecture == Architecture.X86)
{
return new HealthCheck(GetType());
}
// Check for BSD
var output = _processProvider.StartAndCapture("uname");
if (output?.ExitCode == 0 && MonoUnames.Contains(output?.Lines.First().Content))