Update Program.cs
Signed-off-by: Lev Rusanov <30170278+JDM170@users.noreply.github.com>
This commit is contained in:
@@ -586,7 +586,7 @@ namespace domain_utility
|
||||
static void Main(string[] args)
|
||||
{
|
||||
Console.Title = Assembly.GetExecutingAssembly().GetCustomAttribute<AssemblyTitleAttribute>().Title;
|
||||
if (args[0] == "reboot")
|
||||
if (args.Length > 0 && args[0] == "reboot")
|
||||
{
|
||||
StartRestartComputers();
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user