Skip to content
This repository was archived by the owner on Apr 2, 2020. It is now read-only.

Commit e8dc60c

Browse files
author
Luzifix
committed
Fix update message
1 parent cf7f568 commit e8dc60c

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

ADTConvert/Program.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ class Program
1111
static void Main(string[] args)
1212
{
1313
bool silentMode = (args.Contains("-s") || args.Contains("--silent"));
14+
bool verbose = (args.Contains("-v") || args.Contains("--verbose"));
15+
1416
if (silentMode)
1517
Console.SetOut(TextWriter.Null);
1618

@@ -20,23 +22,21 @@ static void Main(string[] args)
2022
Console.WriteLine("E-Mail: luzifix@schattenhain.de");
2123
Console.WriteLine("--------------------------------");
2224

25+
if (!args.Contains("-noUpdate") && !args.Contains("--disableUpdateCheck"))
26+
VersionCheck.CheckForUpdate(verbose);
27+
2328
if (args.Length <= 0)
2429
{
2530
ConsoleErrorEnd();
2631
}
2732

2833
string filename = Path.GetFullPath(args[0]);
29-
bool verbose = (args.Contains("-v") || args.Contains("--verbose"));
3034

3135
if (!File.Exists(filename))
3236
{
3337
ConsoleErrorEnd($"File {filename} not found!");
3438
}
3539

36-
37-
if (!args.Contains("-noUpdate") && !args.Contains("--disableUpdateCheck"))
38-
VersionCheck.CheckForUpdate(verbose);
39-
4040
new Main(args[0], verbose);
4141

4242
if(!silentMode)

ADTConvert/VersionCheck/VersionCheck.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ public static void CheckForUpdate(bool verbose = false)
4949
}
5050

5151
Console.ForegroundColor = ConsoleColor.Red;
52-
Console.WriteLine(text);
52+
Console.Error.WriteLine(text);
5353
Console.ResetColor();
5454

55-
if (Console.ReadKey().Key == ConsoleKey.K)
55+
if (Console.ReadKey().Key == ConsoleKey.Y)
5656
{
5757
System.Diagnostics.Process.Start(realaseURL);
5858
}

0 commit comments

Comments
 (0)