Skip to content
Permalink
Browse files
CB-8399 createmobilespec: Put the node executable invocation in quotes (
close #117)
  • Loading branch information
Dmitry Blotsky authored and agrieve committed Feb 4, 2015
1 parent ca1c794 commit 91d658e4b92ddec59e4875007adc50764842b2e2
Showing 1 changed file with 3 additions and 3 deletions.
@@ -451,7 +451,7 @@ function installPlugins() {
}
platforms.forEach(function (platform) {
var projName = getProjName(platform),
nodeCommand = /^win/.test(process.platform) ? process.argv[0] +" " : "";
nodeCommand = /^win/.test(process.platform) ? ("\"" + process.argv[0] + "\" ") : "";
pushd(projName);
// plugin path must be relative and not absolute (sigh)
shelljs.exec(nodeCommand + path.join(top_dir, "cordova-plugman", "main.js") +
@@ -488,7 +488,7 @@ function installPlugins() {
var linkPluginsFlag = (argv.link || argv.linkplugins) ? ' --link' : '';
shelljs.exec(cli + " plugin add org.apache.cordova.test.whitelist org.apache.cordova.test.echo --searchpath " + mobile_spec_git_dir + linkPluginsFlag + browserifyFlag);
shelljs.exec(cli + " plugin add org.apache.cordova.test-framework --searchpath " + top_dir + linkPluginsFlag + browserifyFlag);

if (argv.globalplugins) {
shelljs.exec(cli + " plugin add " + path.join(mobile_spec_git_dir, "dependencies-plugin") + linkPluginsFlag + browserifyFlag);
} else {
@@ -541,7 +541,7 @@ function updateJS() {
platforms.forEach(function (platform) {
var version = require(join_paths([top_dir].concat(platform_layout[platform].bin)) + '/package').version;
pushd(cordova_js_git_dir);
var nodeCommand = /^win/.test(process.platform) ? process.argv[0] + " " : "";
var nodeCommand = /^win/.test(process.platform) ? ("\"" + process.argv[0] + "\" ") : "";
var code = shelljs.exec(nodeCommand + path.join(__dirname, "node_modules", "grunt-cli", "bin", "grunt") + ' compile:' + platform + ' --platformVersion=' + version).code;
if (code) {
console.log("Failed to build js.");

0 comments on commit 91d658e

Please sign in to comment.