From 1a3291fa364a762c924f23d3884a02f184622045 Mon Sep 17 00:00:00 2001 From: David Majda Date: Tue, 25 Jan 2011 10:35:48 +0100 Subject: [PATCH] Jakefile: Put the LIB_DIR existence check & creation at the right place --- Jakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jakefile b/Jakefile index 25f0ef1..2cb570b 100644 --- a/Jakefile +++ b/Jakefile @@ -65,12 +65,12 @@ task("build", [], function() { }).join("\n").replace("@VERSION", PEGJS_VERSION); } - fs.writeFileSync(PEGJS_OUT_FILE, preprocess(PEGJS_SRC_FILE), "utf8"); try { fs.statSync(LIB_DIR); } catch (e) { fs.mkdirSync(LIB_DIR, 0755); } + fs.writeFileSync(PEGJS_OUT_FILE, preprocess(PEGJS_SRC_FILE), "utf8"); }); task("default", ["build"], function() {});