Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions tasks/deployments.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,15 @@ module.exports = function(grunt) {

// Capture output...
var output = shell.exec(cmd, {silent: true}).output;
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
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 );
Expand Down