brodybits commented on a change in pull request #153: Improve createmobilespec/createmobilespec.js URL: https://github.com/apache/cordova-mobile-spec/pull/153#discussion_r236806921
########## File path: createmobilespec/createmobilespec.js ########## @@ -489,31 +495,32 @@ if (argv.plugman) { } else { // Create the project using "cordova create" myDelete(cli_project_dir); - console.log("Creating project mobilespec..."); - shelljs.exec(cli + " create " + projectDirName + " org.apache.cordova.mobilespec MobileSpec_Tests --template cordova-mobile-spec" + path.sep + "www"); + console.log("### Creating project mobilespec..."); + executeShellCommand(cli + " create " + projectDirName + " org.apache.cordova.mobilespec MobileSpec_Tests --template cordova-mobile-spec" + path.sep + "www"); shelljs.cp("-f", path.join(mobile_spec_git_dir, 'config.xml'), path.join(projectDirName, 'config.xml')); // Config.json file ---> linked to local libraries pushd(cli_project_dir); // Executing platform Add - console.log("Adding platforms..."); + console.log("### Adding platforms..."); [].concat(platforms).forEach(function (platform) { - console.log("Adding Platform: " + platform); + console.log("### Adding Platform: " + platform); var platformArg; if (argv.global) { platformArg = platform; } else { platformArg = join_paths([top_dir].concat(platform_layout[platform].bin)); if (!fs.existsSync(platformArg)) { - couldNotFind(platformArg, platform); + couldNotFind(platform, platform); Review comment: ```suggestion couldNotFind(platform); ``` 2nd argument is not needed if same as the first. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org For additional commands, e-mail: commits-h...@cordova.apache.org