Skip to content

Commit 075fe62

Browse files
authored
Merge pull request #531 from poppastring/fix-init-process
Changed some assumptions about initializing a project
2 parents ee68653 + f7a6459 commit 075fe62

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

source/DasBlog.CLI/InitializeConfigFiles.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@ public static void CopyFiles(string source, string environment)
2222
foreach (var file in files)
2323
{
2424
var renamefile = file.Name.Replace(".", $".{environment}.");
25-
26-
file.CopyTo(Path.Combine(dir.FullName, renamefile), false);
25+
26+
if (!File.Exists(Path.Combine(dir.FullName, renamefile)))
27+
{
28+
file.CopyTo(Path.Combine(dir.FullName, renamefile), false);
29+
}
2730
}
2831
}
2932

0 commit comments

Comments
 (0)