mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
Minor fix for help text, fix two compiler warnings
This commit is contained in:
@@ -1180,7 +1180,7 @@ namespace Mono.Options
|
|||||||
|
|
||||||
Category c = p as Category;
|
Category c = p as Category;
|
||||||
if (c != null) {
|
if (c != null) {
|
||||||
WriteDescription (o, p.Description, "", 80, 80);
|
WriteDescription (o, p.Description, "", LineWidth, LineWidth);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -632,7 +632,7 @@ namespace Squirrel
|
|||||||
var runningProcesses = UnsafeUtility.EnumerateProcesses();
|
var runningProcesses = UnsafeUtility.EnumerateProcesses();
|
||||||
|
|
||||||
// Finally, clean up the app-X.Y.Z directories
|
// Finally, clean up the app-X.Y.Z directories
|
||||||
await toCleanup.ForEachAsync(async x => {
|
await toCleanup.ForEachAsync(x => {
|
||||||
try {
|
try {
|
||||||
if (runningProcesses.All(p => p.Item1 == null || !p.Item1.StartsWith(x.FullName, StringComparison.OrdinalIgnoreCase))) {
|
if (runningProcesses.All(p => p.Item1 == null || !p.Item1.StartsWith(x.FullName, StringComparison.OrdinalIgnoreCase))) {
|
||||||
Utility.DeleteFileOrDirectoryHardOrGiveUp(x.FullName);
|
Utility.DeleteFileOrDirectoryHardOrGiveUp(x.FullName);
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ namespace Squirrel.Tests.Core
|
|||||||
|
|
||||||
var sw = new Stopwatch();
|
var sw = new Stopwatch();
|
||||||
sw.Start();
|
sw.Start();
|
||||||
Utility.DeleteDirectory(tempDir).Wait();
|
Utility.DeleteFileOrDirectoryHard(tempDir);
|
||||||
sw.Stop();
|
sw.Stop();
|
||||||
this.Log().Info("Delete took {0}ms", sw.ElapsedMilliseconds);
|
this.Log().Info("Delete took {0}ms", sw.ElapsedMilliseconds);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user