diff --git a/source/DasBlog.CLI/InitializeConfigFiles.cs b/source/DasBlog.CLI/InitializeConfigFiles.cs index 2ad668b7..bbe05a3c 100644 --- a/source/DasBlog.CLI/InitializeConfigFiles.cs +++ b/source/DasBlog.CLI/InitializeConfigFiles.cs @@ -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); + } } }