1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-10-30 15:32:31 +01:00

Fixed: OSX version detection

ref #4113 (not a fix, just partially)
This commit is contained in:
Taloth Saldono 2020-12-23 17:18:06 +01:00
parent 078898af91
commit 026af22229

View File

@ -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))