getdave / grunt-deployments

MYSQL database deployments using GruntJS
MIT License
72 stars 34 forks source link

hang due to double backslash #64

Open nwtn opened 9 years ago

nwtn commented 9 years ago

My remote database dumps were hanging here:

dnewton@newtron ~/Sites/gh/great 👍  grunt db_pull --target="dev"
Running "db_pull" task

Pulling database from 'Dev DB' into Local
Creating DUMP of remote database

I traced this to deployments.js line 208, cmd = tpl_ssh + " \\ " + tpl_mysqldump;. My system was not executing the remote command after connecting. By changing the line to cmd = tpl_ssh + " '" + tpl_mysqldump + "'";, it was able to execute the remote command.

I'd do a PR, but this is obviously working fine for some people, so I'm guessing it has something to do with the version of SSH or the OS. My local machine is running OS X Yosemite, and the SSH version is "OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011".