mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 19:36:07 +08:00
* Stop console misleadingly reporting an error if it cannot find a startup commands file
This commit is contained in:
@@ -170,14 +170,15 @@ namespace OpenSim
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// Run an optional startup list of commands
|
||||
/// </summary>
|
||||
/// <param name="fileName"></param>
|
||||
private void RunCommandScript(string fileName)
|
||||
{
|
||||
m_log.Info("[COMMANDFILE]: Running " + fileName);
|
||||
{
|
||||
if (File.Exists(fileName))
|
||||
{
|
||||
m_log.Info("[COMMANDFILE]: Running " + fileName);
|
||||
|
||||
StreamReader readFile = File.OpenText(fileName);
|
||||
string currentCommand;
|
||||
while ((currentCommand = readFile.ReadLine()) != null)
|
||||
@@ -189,10 +190,6 @@ namespace OpenSim
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
m_log.Error("[COMMANDFILE]: Command script missing. Can not run commands");
|
||||
}
|
||||
}
|
||||
|
||||
private static void PrintFileToConsole(string fileName)
|
||||
|
||||
Reference in New Issue
Block a user