made RenderMode configurable

This commit is contained in:
Shaun Walker
2021-05-30 15:37:23 -04:00
parent afcc5e2170
commit 276817c89d
8 changed files with 67 additions and 18 deletions

View File

@ -55,7 +55,7 @@ namespace Oqtane.Infrastructure
{
File.Delete(destinationFile);
}
if (Path.GetExtension(destinationFile) == ".nupkg.bak")
if (destinationFile.ToLower().EndsWith(".nupkg.bak"))
{
// leave a copy in the current folder as it is distributed with the core framework
File.Copy(file, destinationFile);