From cd1d592f87c6c8dfb1bb8dffa2cc716516bc0808 Mon Sep 17 00:00:00 2001 From: Sashko Stubailo Date: Mon, 18 Aug 2014 17:11:39 -0700 Subject: [PATCH] Try a different thing --- tools/commands-cordova.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/commands-cordova.js b/tools/commands-cordova.js index 57aa104986..f8c872333e 100644 --- a/tools/commands-cordova.js +++ b/tools/commands-cordova.js @@ -48,11 +48,7 @@ var execFileSyncOrThrow = function (file, args, opts) { var execFileSync = require('./utils.js').execFileSync; if (_.contains([localCordova, localAdb], file) && _.contains(project.getCordovaPlatforms(), 'android')) { - try { - ensureAndroidBundle(); - } catch (err) { - process.exit(); - } + ensureAndroidBundle(); } var process = execFileSync(file, args, opts); @@ -65,7 +61,11 @@ var ensureAndroidBundle = function () { var ensureScriptPath = path.join(files.getCurrentToolsDir(), 'scripts', 'ensure_android_bundle.sh'); - execFileSyncOrThrow('bash', [ensureScriptPath], { pipeOutput: true }); + try { + execFileSyncOrThrow('bash', [ensureScriptPath], { pipeOutput: true }); + } catch (err) { + process.exit(); + } }; var getLoadedPackages = _.once(function () {