* Stop console misleadingly reporting an error if it cannot find a startup commands file
parent
4356fc1006
commit
8527f23c59
|
@ -170,14 +170,15 @@ namespace OpenSim
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
/// Run an optional startup list of commands
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="fileName"></param>
|
/// <param name="fileName"></param>
|
||||||
private void RunCommandScript(string fileName)
|
private void RunCommandScript(string fileName)
|
||||||
{
|
{
|
||||||
m_log.Info("[COMMANDFILE]: Running " + fileName);
|
|
||||||
if (File.Exists(fileName))
|
if (File.Exists(fileName))
|
||||||
{
|
{
|
||||||
|
m_log.Info("[COMMANDFILE]: Running " + fileName);
|
||||||
|
|
||||||
StreamReader readFile = File.OpenText(fileName);
|
StreamReader readFile = File.OpenText(fileName);
|
||||||
string currentCommand;
|
string currentCommand;
|
||||||
while ((currentCommand = readFile.ReadLine()) != null)
|
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)
|
private static void PrintFileToConsole(string fileName)
|
||||||
|
|
Loading…
Reference in New Issue