You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by he...@apache.org on 2014/01/28 00:16:12 UTC

git commit: CB-5141: FirefoxOS - fix version script permissions

Updated Branches:
  refs/heads/master ecf6e8972 -> ded6debe1


CB-5141: FirefoxOS - fix version script permissions


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

Branch: refs/heads/master
Commit: ded6debe17126fff6886ddf62f6b674d755893d1
Parents: ecf6e89
Author: Josh Soref <js...@blackberry.com>
Authored: Mon Jan 27 13:32:09 2014 -0500
Committer: Josh Soref <js...@blackberry.com>
Committed: Mon Jan 27 13:32:09 2014 -0500

----------------------------------------------------------------------
 bin/lib/create.js | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-firefoxos/blob/ded6debe/bin/lib/create.js
----------------------------------------------------------------------
diff --git a/bin/lib/create.js b/bin/lib/create.js
index d93753e..a5905c1 100755
--- a/bin/lib/create.js
+++ b/bin/lib/create.js
@@ -59,5 +59,10 @@ exports.createProject = function(project_path,package_name,project_name){
 
     //copy cordova folder
     shjs.cp('-r', path.join(ROOT, 'bin', 'templates', 'project', 'cordova'), project_path); 
-    shjs.chmod(755, path.join(project_path, 'cordova', 'run'));
+    [
+        'run',
+        'version',
+    ].forEach(function(f) { 
+         shjs.chmod(755, path.join(project_path, 'cordova', f));
+    });
 }