Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Backup process log
  • Loading branch information
dellis1972 committed Nov 23, 2017
commit 8e2b54d8d5f4066cd564979cbb000209cbe99489
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,8 @@ protected bool BuildInternal (string projectOrSolution, string target, string []

if (nativeCrashDetected) {
Console.WriteLine ($"Native crash detected! Running the build for {projectOrSolution} again.");
File.Move(processLog, processLog + ".bak");
File.Delete(processLog);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How will this actually delete anything? The previous line ensures that processLog will no longer exist, unless the directory that processLog is in doesn't allow renaming...in which case, what are the odds that the File.Delete() will work either?

continue;
} else {
break;
Expand Down