diff --git a/package.json b/package.json index 5272ee3..f6be078 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "grunt": "~0.4.1" }, "peerDependencies": { - "grunt": "~0.4.1" + "grunt": ">=0.4.0" }, "keywords": [ "gruntplugin", diff --git a/tasks/lib/util.js b/tasks/lib/util.js index 41ddb72..15304d3 100644 --- a/tasks/lib/util.js +++ b/tasks/lib/util.js @@ -220,8 +220,8 @@ exports.init = function (grunt) { var tpls = { backup_path: "<%= backups_dir %>/<%= env %>/<%= date %>/<%= time %>", - mysqldump: "mysqldump -h <%= host %> -u<%= user %> -p<%= pass %> <%= database %>", - mysql: "mysql -h <%= host %> -u <%= user %> -p<%= pass %> <%= database %>", + mysqldump: "MYSQL_PWD=<%= pass %> mysqldump -h <%= host %> -u<%= user %> <%= database %>", + mysql: "MYSQL_PWD=<%= pass %> mysql -h <%= host %> -u <%= user %> <%= database %>", rsync_push: "rsync <%= rsync_args %> --delete -e 'ssh <%= ssh_host %>' <%= exclusions %> <%= from %> :<%= to %>", rsync_pull: "rsync <%= rsync_args %> -e 'ssh <%= ssh_host %>' <%= exclusions %> :<%= from %> <%= to %>", ssh: "ssh <%= host %>",