Skip to content

Commit

Permalink
fix existing files exception
Browse files Browse the repository at this point in the history
  • Loading branch information
stavroskasidis committed Feb 2, 2022
1 parent 07434c5 commit 9e9d078
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public override bool Execute()
if (Path.GetExtension(name) != ".dll") continue;

FlipBz(asset.ItemSpec);
Log.LogMessage(MessageImportance.High, $"Changed headers of {asset.ItemSpec}");
Log.LogMessage(MessageImportance.High, $"Changed header of {asset.ItemSpec}");
}

return true;
Expand Down
1 change: 1 addition & 0 deletions src/BlazorWasmAntivirusProtection.Tasks/RenameDlls.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public override bool Execute()
{
var newName = file.Replace(".dll", $".{BinaryExtensionName}");
Log.LogMessage(MessageImportance.High, $"Renaming \"{file}\" to \"{newName}\"");
if (File.Exists(newName)) File.Delete(newName);
File.Move(file, newName);
}
}
Expand Down

0 comments on commit 9e9d078

Please sign in to comment.