mirror of https://github.com/Radarr/Radarr
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:
|
case 1:
|
||||||
return startupContext;
|
return startupContext;
|
||||||
case 3:
|
|
||||||
startupContext.UpdateLocation = args[1];
|
|
||||||
startupContext.ExecutingApplication = args[2];
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
Logger.Debug("Arguments:");
|
Logger.Debug("Arguments:");
|
||||||
|
@ -90,9 +86,10 @@ namespace NzbDrone.Update
|
||||||
Logger.Debug(" {0}", arg);
|
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