Skip to content

Commit 2950052

Browse files
committed
do not overwrite makefiles while opening a problem
closes #32
1 parent 21cdded commit 2950052

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/com/dogcows/Editor.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ public Editor(ProblemComponentModel component,
164164

165165
// Finally, expand the Makefile template and write it.
166166
File makeFile = new File(directory, "Makefile");
167+
if (!makeFile.canRead())
167168
{
168169
String text = Util.expandTemplate(readTemplate(lang + "Makefile"),
169170
terms);

0 commit comments

Comments
 (0)