Fixes account creation with terminals that use redirection (git bash) (#239)
- [X] Fixes account creation with terminals that use redirection Bumps release version
This commit is contained in:
parent
c3d2740983
commit
76a9729f61
1 changed files with 3 additions and 3 deletions
|
|
@ -10,9 +10,10 @@ namespace Server.Misc
|
||||||
if (Accounts.Count == 0)
|
if (Accounts.Count == 0)
|
||||||
{
|
{
|
||||||
Console.WriteLine("This server has no accounts.");
|
Console.WriteLine("This server has no accounts.");
|
||||||
Console.Write("Do you want to create the owner account now? (y/n)");
|
Console.Write("Do you want to create the owner account now? (y/n): ");
|
||||||
|
|
||||||
if (Console.ReadKey(true).Key == ConsoleKey.Y)
|
var answer = Console.ReadLine();
|
||||||
|
if (answer == "y" || answer == "Y")
|
||||||
{
|
{
|
||||||
Console.WriteLine();
|
Console.WriteLine();
|
||||||
|
|
||||||
|
|
@ -30,7 +31,6 @@ namespace Server.Misc
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Console.WriteLine();
|
Console.WriteLine();
|
||||||
|
|
||||||
Console.WriteLine("Account not created.");
|
Console.WriteLine("Account not created.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue