getdave/grunt-deployments

hang due to double backslash

nwtn opened this issue ยท 0 comments

nwtn commented

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".