From 2950052d2276e7ec64aad1ec678e32622e3a38c5 Mon Sep 17 00:00:00 2001 From: Charles McGarvey Date: Thu, 23 Jun 2011 13:25:35 -0600 Subject: [PATCH] do not overwrite makefiles while opening a problem closes #32 --- src/com/dogcows/Editor.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/com/dogcows/Editor.java b/src/com/dogcows/Editor.java index ff38a0f..eca8420 100644 --- a/src/com/dogcows/Editor.java +++ b/src/com/dogcows/Editor.java @@ -164,6 +164,7 @@ public class Editor // Finally, expand the Makefile template and write it. File makeFile = new File(directory, "Makefile"); + if (!makeFile.canRead()) { String text = Util.expandTemplate(readTemplate(lang + "Makefile"), terms); -- 2.45.2