From 7dc1fa63cae5d292da4a999a45e073aeb59c8583 Mon Sep 17 00:00:00 2001 From: HALLOUL Mohamed Date: Tue, 17 Feb 2015 14:19:38 +0100 Subject: [PATCH 1/2] [FIX for #55 ] fixing the dumps prefixed by : "Warning: Using a password on the command line interface can be insecure." --- tasks/deployments.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tasks/deployments.js b/tasks/deployments.js index 38b2ceb..7f5fb0a 100644 --- a/tasks/deployments.js +++ b/tasks/deployments.js @@ -210,6 +210,15 @@ module.exports = function(grunt) { // Capture output... var output = shell.exec(cmd, {silent: true}).output; + if(output.search("warning")!=-1){ + // break the textblock into an array of lines + var lines = output.split('\n'); + // remove one line, starting at the first position + lines.splice(0,1); + // join the array back into a single string + output = lines.join('\n'); + } + // Write output to file using native Grunt methods grunt.file.write( output_paths.file, output ); From 4ed6ee43006f493dd284e8d794a8dabcee00b17e Mon Sep 17 00:00:00 2001 From: HALLOUL Mohamed Date: Tue, 17 Feb 2015 14:22:08 +0100 Subject: [PATCH 2/2] [UPDATING PREVIOUS FIX FOR #55] --- tasks/deployments.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/deployments.js b/tasks/deployments.js index 7f5fb0a..910ff70 100644 --- a/tasks/deployments.js +++ b/tasks/deployments.js @@ -210,7 +210,7 @@ module.exports = function(grunt) { // Capture output... var output = shell.exec(cmd, {silent: true}).output; - if(output.search("warning")!=-1){ + if(output.search("Warning: Using a password on the command line interface can be insecure.")!=-1){ // break the textblock into an array of lines var lines = output.split('\n'); // remove one line, starting at the first position