Do not limit number of args for update on Non-Windows

pull/3113/head
Mark McDowall 10 years ago
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…
Cancel
Save