mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-10-30 15:32:31 +01:00
Do not limit number of args for update on Non-Windows
This commit is contained in:
parent
535b85e1de
commit
1a34cd8e6a
@ -77,10 +77,6 @@ namespace NzbDrone.Update
|
||||
{
|
||||
case 1:
|
||||
return startupContext;
|
||||
case 3:
|
||||
startupContext.UpdateLocation = args[1];
|
||||
startupContext.ExecutingApplication = args[2];
|
||||
break;
|
||||
default:
|
||||
{
|
||||
Logger.Debug("Arguments:");
|
||||
@ -90,9 +86,10 @@ namespace NzbDrone.Update
|
||||
Logger.Debug(" {0}", arg);
|
||||
}
|
||||
|
||||
var message = String.Format("Number of arguments are unexpected, expected: 3, found: {0}", args.Count());
|
||||
startupContext.UpdateLocation = args[1];
|
||||
startupContext.ExecutingApplication = args[2];
|
||||
|
||||
throw new ArgumentOutOfRangeException("args", message);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user