Skip to content

Commit

Permalink
fix system data extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
msartore committed May 14, 2024
1 parent 5433ae6 commit 68b3c38
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
6 changes: 3 additions & 3 deletions ATA-GUI/ATA-GUI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
<Copyright>© 2021-2024 Massimiliano Sartore</Copyright>

<!-- Versioning -->
<Version>3.7.1.0</Version>
<AssemblyVersion>3.7.1.0</AssemblyVersion>
<FileVersion>3.7.1.0</FileVersion>
<Version>3.7.2.0</Version>
<AssemblyVersion>3.7.2.0</AssemblyVersion>
<FileVersion>3.7.2.0</FileVersion>

<!-- Publish settings -->
<PublishUrl>publish\</PublishUrl>
Expand Down
2 changes: 1 addition & 1 deletion ATA-GUI/Classes/ATA.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace ATA_GUI.Classes
{
internal class ATA
{
public static readonly string CURRENTVERSION = "v3.7.1";
public static readonly string CURRENTVERSION = "v3.7.2";
public static readonly string IPFileName = "IPList.txt";

public HashSet<string> IPList { get; } = new HashSet<string>();
Expand Down
14 changes: 9 additions & 5 deletions ATA-GUI/Utils/ConsoleProcess.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,21 @@ public static string adbFastbootCommandR(string[] args, int type)
using Process process = new() { StartInfo = startInfo };
process.Start();

string error = process.StandardError.ReadToEnd();
if (type == 1)
{
string error = process.StandardError.ReadToEnd();

if (!string.IsNullOrEmpty(error))
{
ret.AppendLine(error);
}
}
string output = process.StandardOutput.ReadToEnd();

if (!string.IsNullOrEmpty(output))
{
ret.AppendLine(output);
}
if (!string.IsNullOrEmpty(error))
{
ret.AppendLine(error);
}

process.WaitForExit();
}
Expand Down

0 comments on commit 68b3c38

Please sign in to comment.