Added this for the ARM build !wip

This commit is contained in:
Jamie 2018-01-18 08:35:40 +00:00
commit 132c526965

View file

@ -123,8 +123,15 @@ namespace Ombi.Schedule.Jobs.Ombi
else
{
Logger.LogDebug(LoggingEvents.Updater, "We are linux");
if (RuntimeInformation.OSDescription.Contains("arm", CompareOptions.IgnoreCase))
{
download = updates.Downloads.FirstOrDefault(x => x.Name.Contains("arm", CompareOptions.IgnoreCase));
}
else
{
download = updates.Downloads.FirstOrDefault(x => x.Name.Contains("linux", CompareOptions.IgnoreCase));
}
}
if (download == null)
{
Logger.LogDebug(LoggingEvents.Updater, "There were no downloads");