mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-17 21:44:48 -04:00
Do not limit number of args for update on Non-Windows
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user