diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs index 19997379e0..64989ea284 100644 --- a/OpenSim/Region/Application/OpenSim.cs +++ b/OpenSim/Region/Application/OpenSim.cs @@ -170,14 +170,15 @@ namespace OpenSim } /// - /// + /// Run an optional startup list of commands /// /// 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)