Skip to content

Commit

Permalink
Merge pull request #531 from poppastring/fix-init-process
Browse files Browse the repository at this point in the history
Changed some assumptions about initializing a project
  • Loading branch information
poppastring authored Feb 26, 2021
2 parents ee68653 + f7a6459 commit 075fe62
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions source/DasBlog.CLI/InitializeConfigFiles.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@ public static void CopyFiles(string source, string environment)
foreach (var file in files)
{
var renamefile = file.Name.Replace(".", $".{environment}.");

file.CopyTo(Path.Combine(dir.FullName, renamefile), false);

if (!File.Exists(Path.Combine(dir.FullName, renamefile)))
{
file.CopyTo(Path.Combine(dir.FullName, renamefile), false);
}
}
}

Expand Down

0 comments on commit 075fe62

Please sign in to comment.