From 606f0c6d86241efaaf3ecae1c196adb68eb97376 Mon Sep 17 00:00:00 2001 From: Matthew Arbesfeld Date: Fri, 15 Aug 2014 11:43:24 -0700 Subject: [PATCH] Revert the change --- tools/commands-cordova.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/commands-cordova.js b/tools/commands-cordova.js index 557690ebf6..56b8b63026 100644 --- a/tools/commands-cordova.js +++ b/tools/commands-cordova.js @@ -310,10 +310,9 @@ cordova.ensureCordovaPlugins = function (localPath, options) { if (newSettings && newSettings[name]) { if (! _.isObject(newSettings[name])) throw new Error('Meteor.settings.cordova.' + name + ' is expected to be an object'); - // XXX throw an error if value is not a string _.each(newSettings[name], function (value, variable) { additionalArgs.push('--variable'); - additionalArgs.push(variable + '=' + value); + additionalArgs.push(variable + '=' + JSON.stringify(value)); }); } process.stdout.write('Installing ' + pluginInstallCommand + '\n');