diff --git a/src/main/java/com/github/twrpbuilder/mkTree/MakeTree.java b/src/main/java/com/github/twrpbuilder/mkTree/MakeTree.java index de5014b..8866255 100644 --- a/src/main/java/com/github/twrpbuilder/mkTree/MakeTree.java +++ b/src/main/java/com/github/twrpbuilder/mkTree/MakeTree.java @@ -50,7 +50,7 @@ public MakeTree(boolean mtk, String type) { System.exit(0); } } - if (new File(getPath()).exists()) + if (new File(getPath()+"kernel.mk").exists()) { System.out.println("Do you want to overwrite "+getPath()+" ?( default: n)"); Scanner read=new Scanner(System.in);