cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject git commit: CB-4748 Fix typo causing create command to not check for existing directory.
Date Tue, 17 Dec 2013 17:59:46 GMT
Updated Branches:
  refs/heads/master 46f86a3ff -> 7b57f1214


CB-4748 Fix typo causing create command to not check for existing directory.


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

Branch: refs/heads/master
Commit: 7b57f1214c0787f55aba7ff076a1d68207704c2b
Parents: 46f86a3
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Tue Dec 17 12:59:07 2013 -0500
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Tue Dec 17 12:59:07 2013 -0500

----------------------------------------------------------------------
 src/create.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/7b57f121/src/create.js
----------------------------------------------------------------------
diff --git a/src/create.js b/src/create.js
index 961d787..f741e2f 100644
--- a/src/create.js
+++ b/src/create.js
@@ -75,8 +75,8 @@ module.exports = function create (dir, id, name, cfg) {
         }
         return false;
     }
-    
-    if (fs.existsSync(dir) && !sanedircontents) {
+
+    if (fs.existsSync(dir) && !sanedircontents(dir)) {
         return Q.reject(new Error('Path already exists and is not empty: ' + dir));
     }
 


Mime
View raw message