You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by al...@apache.org on 2017/05/18 07:53:04 UTC
cordova-paramedic git commit: Better parsing of --config arg
Repository: cordova-paramedic
Updated Branches:
refs/heads/master ddef72b02 -> 75d60ec9a
Better parsing of --config arg
Project: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/commit/75d60ec9
Tree: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/tree/75d60ec9
Diff: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/diff/75d60ec9
Branch: refs/heads/master
Commit: 75d60ec9a0711495803b96262cea4d4e3ee50100
Parents: ddef72b
Author: Alexander Sorokin <al...@akvelon.com>
Authored: Thu May 18 10:52:55 2017 +0300
Committer: Alexander Sorokin <al...@akvelon.com>
Committed: Thu May 18 10:52:55 2017 +0300
----------------------------------------------------------------------
lib/utils/utilities.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-paramedic/blob/75d60ec9/lib/utils/utilities.js
----------------------------------------------------------------------
diff --git a/lib/utils/utilities.js b/lib/utils/utilities.js
index 108e89f..55fda61 100644
--- a/lib/utils/utilities.js
+++ b/lib/utils/utilities.js
@@ -168,7 +168,8 @@ function getConfigPath(config) {
}
// if not, search for it in the 'conf' dir
- if (config.indexOf('.config.json') !== config.length - 12) {
+ if (config.indexOf('.config.json') === -1 ||
+ config.indexOf('.config.json') !== config.length - 12) {
config += '.config.json';
}
configPath = path.join(__dirname, '../../conf', config);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org