cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [10/14] cordova-paramedic git commit: Default to current working directory if plugin not specified
Date Sat, 05 Mar 2016 06:49:33 GMT
Default to current working directory if plugin not specified


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

Branch: refs/heads/master
Commit: a00cc72677d3dce5b67403bbe9678ad7c27d88a3
Parents: 1a2b17e
Author: Jesse MacFadyen <purplecabbage@gmail.com>
Authored: Mon Nov 2 23:45:51 2015 -0800
Committer: Jesse MacFadyen <purplecabbage@gmail.com>
Committed: Mon Nov 2 23:45:51 2015 -0800

----------------------------------------------------------------------
 main.js      | 2 +-
 paramedic.js | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-paramedic/blob/a00cc726/main.js
----------------------------------------------------------------------
diff --git a/main.js b/main.js
index 80592a4..a6ffed5 100755
--- a/main.js
+++ b/main.js
@@ -22,7 +22,7 @@ var USAGE = "Error missing args. \n" +
 
 var argv = parseArgs(process.argv.slice(2));
 
-if(!argv.platform || !argv.plugin) {
+if(!argv.platform) {
     console.log(USAGE);
     process.exit(1);
 }

http://git-wip-us.apache.org/repos/asf/cordova-paramedic/blob/a00cc726/paramedic.js
----------------------------------------------------------------------
diff --git a/paramedic.js b/paramedic.js
index 09dcd85..a49b5c5 100644
--- a/paramedic.js
+++ b/paramedic.js
@@ -278,6 +278,9 @@ var storedCWD =  null;
 exports.run = function(_platformId,_plugins,_callback,bJustBuild,nPort,msTimeout,bBrowserify,bSilent,bVerbose)
{
 
     storedCWD = storedCWD || process.cwd();
+    if(!_plugins) {
+        _plugins = process.cwd();
+    }
     if(_platformId && _plugins) {
 
         // make it an array if it's not


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message