mirror of
https://github.com/Readarr/Readarr
synced 2025-12-13 20:04:33 +01:00
Fixed: OSX version detection
ref sonarr/4113 (not a fix, just partially) (cherry picked from commit 026af222297d1d90d824e077e989ffd146bb5016)
This commit is contained in:
parent
621bb20756
commit
c0db20a860
1 changed files with 2 additions and 2 deletions
|
|
@ -37,8 +37,8 @@ public OsVersionModel Read()
|
|||
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…
Reference in a new issue