Instagram/ec2-ssh — pull request #1 by apetresc (2011-10-15 20:31:55+00:00)
Title: ec2-ssh script is not sh-compatible

When trying to run ec2-ssh, I consistently get the error:

apetresc@bumblebee:~$ ec2-ssh tomcat1
/home/apetresc/.virtualenv/twitsprout/bin/ec2-ssh: 16: Syntax error: "(" unexpected

The problem is that line 16 uses `declare`, a feature that is not part of plain old standard `sh`:

IFS="@"; declare -a hostparts=($1)

I fixed this by hinting `/bin/bash` instead of `/bin/sh` and now it works great. Here's the pull request :)