Fixed: OSX version detection

ref #4113 (not a fix, just partially)
pull/4202/head
Taloth Saldono 4 years ago
parent 078898af91
commit 026af22229

@ -39,8 +39,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))

Loading…
Cancel
Save