dcrec1/inploy — Issue #37: inploy:remote:setup constructs faulty command
Author: mrreynolds
Created: 2012-01-04 17:20:59+00:00
State: open

Running `inploy:remote:setup` constructs a faulty shell command when it a branch is set and `login_shell = true`:

```
Inploy => ssh -A iqvoc@iqvoc.innoq.com "bash -l -c 'cd /var/www && git clone --depth 1 git://github.com/innoq/iqvoc.git iqvoc_inploy && cd iqvoc_inploy && $(git branch | grep -vq inploy) && git checkout -f -b inploy origin/inploy && bundle install --path ~/.bundle --without development test cucumber && rake inploy:local:setup RAILS_ENV=production environment=production'"
bash: -c: Line 0: Syntax error at unexpected word `&&'

The problem seems to be that `$(git branch | grep -vq inploy)` returns nothing and the command containts two `&&` after each other.

What's `$(git branch | grep -vq inploy)` by the way?