Fixed: OSX version detection

ref sonarr/4113 (not a fix, just partially)

(cherry picked from commit 026af222297d1d90d824e077e989ffd146bb5016)
This commit is contained in:
Taloth Saldono
2020-12-23 17:18:06 +01:00
committed by ta264
parent 621bb20756
commit c0db20a860

View File

@@ -37,8 +37,8 @@ namespace NzbDrone.Mono.EnvironmentInfo.VersionAdapters
var allFiles = _diskProvider.GetFiles(PLIST_DIR, SearchOption.TopDirectoryOnly);
var versionFile = allFiles.SingleOrDefault(c =>
c.EndsWith("SystemVersion.plist") ||
c.EndsWith("ServerVersion.plist"));
c.EndsWith("/SystemVersion.plist") ||
c.EndsWith("/ServerVersion.plist"));
if (string.IsNullOrWhiteSpace(versionFile))
{