engineyard/engineyard — Issue #129: "ey ssh" exit code should be server exit code
Author: henrik
Created: 2011-11-08 09:05:22+00:00
State: open

This gives no output:

ey ssh "false" -e staging || echo "failed"

But this does:

ssh staging "false" || echo "failed"
failed

Would be helpful if it forwarded the exit code.

A workaround is to echo the exit code and do something with it:

ey ssh "false; echo $?" -e staging | do_something_with_it