You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by fi...@apache.org on 2012/11/28 19:16:23 UTC
[7/50] git commit: Attempt for #69.
Attempt for #69.
Project: http://git-wip-us.apache.org/repos/asf/cordova-cli/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-cli/commit/4b1e43a4
Tree: http://git-wip-us.apache.org/repos/asf/cordova-cli/tree/4b1e43a4
Diff: http://git-wip-us.apache.org/repos/asf/cordova-cli/diff/4b1e43a4
Branch: refs/heads/master
Commit: 4b1e43a4c270a37b8efe2f0e03711c75df142c5d
Parents: 2064e80
Author: Fil Maj <ma...@gmail.com>
Authored: Tue Nov 20 12:13:38 2012 -0800
Committer: Fil Maj <ma...@gmail.com>
Committed: Tue Nov 20 12:13:38 2012 -0800
----------------------------------------------------------------------
src/plugin.js | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/4b1e43a4/src/plugin.js
----------------------------------------------------------------------
diff --git a/src/plugin.js b/src/plugin.js
index 4bf5918..b264df7 100644
--- a/src/plugin.js
+++ b/src/plugin.js
@@ -110,7 +110,9 @@ module.exports = function plugin(command, targets, callback) {
});
// Finally copy the plugin into the project
- shell.cp('-r', target, pluginPath);
+ var targetPath = path.join(pluginPath, targetName);
+ shell.mkdir('-p', targetPath);
+ shell.cp('-r', path.join(target, '*'), targetPath);
hooks.fire('after_plugin_add');
});