mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-13 02:07:12 -07:00
Cleaned up environment detection
This commit is contained in:
parent
cf77104a02
commit
f4c202441c
35 changed files with 112 additions and 95 deletions
|
@ -94,7 +94,7 @@ namespace NzbDrone.Core.Update
|
|||
|
||||
_backupService.Backup(BackupType.Update);
|
||||
|
||||
if (OsInfo.IsMono && _configFileProvider.UpdateMechanism == UpdateMechanism.Script)
|
||||
if (OsInfo.IsNotWindows && _configFileProvider.UpdateMechanism == UpdateMechanism.Script)
|
||||
{
|
||||
InstallUpdateWithScript(updateSandboxFolder);
|
||||
return;
|
||||
|
@ -124,7 +124,7 @@ namespace NzbDrone.Core.Update
|
|||
throw new ArgumentException("Update Script has not been defined");
|
||||
}
|
||||
|
||||
if (!_diskProvider.FileExists(scriptPath, true))
|
||||
if (!_diskProvider.FileExists(scriptPath, StringComparison.Ordinal))
|
||||
{
|
||||
var message = String.Format("Update Script: '{0}' does not exist", scriptPath);
|
||||
throw new FileNotFoundException(message, scriptPath);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue