Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
97797fc440 |
@ -182,7 +182,7 @@ internal static partial class DiskInfoHelper
|
|||||||
ReadOnlyCollection<string> normalized = GetNormalized(appSettings, logger, devices);
|
ReadOnlyCollection<string> normalized = GetNormalized(appSettings, logger, devices);
|
||||||
string text = string.Join(Environment.NewLine, normalized);
|
string text = string.Join(Environment.NewLine, normalized);
|
||||||
string markdown = string.Concat("# ",
|
string markdown = string.Concat("# ",
|
||||||
Environment.MachineName.ToUpper(),
|
Environment.MachineName.ToLower(),
|
||||||
Environment.NewLine,
|
Environment.NewLine,
|
||||||
Environment.NewLine,
|
Environment.NewLine,
|
||||||
"## Normalized",
|
"## Normalized",
|
||||||
@ -214,7 +214,7 @@ internal static partial class DiskInfoHelper
|
|||||||
Environment.NewLine,
|
Environment.NewLine,
|
||||||
"```",
|
"```",
|
||||||
Environment.NewLine);
|
Environment.NewLine);
|
||||||
WriteAllText(Path.Combine(appSettings.DiskInfoConfiguration.Destination, $"{Environment.MachineName.ToUpper()}.md"), markdown);
|
WriteAllText(Path.Combine(appSettings.DiskInfoConfiguration.Destination, $"{Environment.MachineName.ToLower()}.md"), markdown);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -320,7 +320,7 @@ internal static partial class DiskInfoHelper
|
|||||||
networkAdapter = standardOutput;
|
networkAdapter = standardOutput;
|
||||||
else if (segments[0] == "Win32_Processor")
|
else if (segments[0] == "Win32_Processor")
|
||||||
processor = standardOutput;
|
processor = standardOutput;
|
||||||
WriteAllText(Path.Combine(appSettings.DiskInfoConfiguration.Destination, $"{Environment.MachineName.ToUpper()}-{segments[0]}-{date}.json"), standardOutput);
|
WriteAllText(Path.Combine(appSettings.DiskInfoConfiguration.Destination, $"{Environment.MachineName.ToLower()}-{segments[0]}-{date}.json"), standardOutput);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user