1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00

Updating on mono

This commit is contained in:
Mark McDowall 2014-06-05 16:28:28 -07:00
parent cdb595a3cd
commit ddbcb883ca

View File

@ -71,30 +71,33 @@ private UpdateStartupContext ParseArgs(string[] args)
ProcessId = ParseProcessId(args[0]) ProcessId = ParseProcessId(args[0])
}; };
// if (args.Count() == 1) if (OsInfo.IsMono)
// { {
// return startupContext; if (args.Count() == 1)
// } {
// return startupContext;
// else if (args.Count() == 3) }
// {
// startupContext.UpdateLocation = args[1]; else if (args.Count() == 3)
// startupContext.ExecutingApplication = args[2]; {
// } startupContext.UpdateLocation = args[1];
// startupContext.ExecutingApplication = args[2];
// else }
// {
// logger.Debug("Arguments:"); else
// {
// foreach (var arg in args) logger.Debug("Arguments:");
// {
// logger.Debug(" {0}", arg); foreach (var arg in args)
// } {
// logger.Debug(" {0}", arg);
// var message = String.Format("Number of arguments are unexpected, expected: 3, found: {0}", args.Count()); }
//
// throw new ArgumentOutOfRangeException("args", message); var message = String.Format("Number of arguments are unexpected, expected: 3, found: {0}", args.Count());
// }
throw new ArgumentOutOfRangeException("args", message);
}
}
return startupContext; return startupContext;
} }