You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by dr...@apache.org on 2014/01/10 23:01:34 UTC

git commit: CB-5771 create missing .cordova directory

Updated Branches:
  refs/heads/master 6e2b04fe5 -> d598c4e53


CB-5771 create missing .cordova directory


Project: http://git-wip-us.apache.org/repos/asf/cordova-medic/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-medic/commit/d598c4e5
Tree: http://git-wip-us.apache.org/repos/asf/cordova-medic/tree/d598c4e5
Diff: http://git-wip-us.apache.org/repos/asf/cordova-medic/diff/d598c4e5

Branch: refs/heads/master
Commit: d598c4e532bb3043ad0d430ec8fafced9028e847
Parents: 6e2b04f
Author: David Kemp <dr...@chromium.org>
Authored: Fri Jan 10 17:01:00 2014 -0500
Committer: David Kemp <dr...@chromium.org>
Committed: Fri Jan 10 17:01:00 2014 -0500

----------------------------------------------------------------------
 writejson.js | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-medic/blob/d598c4e5/writejson.js
----------------------------------------------------------------------
diff --git a/writejson.js b/writejson.js
index 55b1eeb..2061497 100644
--- a/writejson.js
+++ b/writejson.js
@@ -11,6 +11,10 @@ var TEST_DIR_ESCAPED = TEST_DIR.split("\\").join("\\\\");
 
 if(argv.branch) BRANCH=argv.branch;
 
+var cfgpath = path.join(MSPEC_DIR,'.cordova');
+
+if(!fs.existsSync(cfgpath)) fs.mkdirSync(cfgpath);
+
 fs.writeFileSync(path.join(MSPEC_DIR,'.cordova','config.json'),
 '{\
   "id":"org.apache.mobilespec",\