try and figure out why it silently fails

This commit is contained in:
Jeff Lindsay
2013-06-23 04:15:28 -07:00
parent 7da64d77c1
commit 2f74fc98c0

View File

@@ -5,8 +5,8 @@ indent() { sed "s/^/ /"; }
echo "-----> Booting EC2 instance..." echo "-----> Booting EC2 instance..."
start=$(ec2-run-instances -k $1 ami-f3d1bb9a 2>&1 ) start=$(ec2-run-instances -k $1 ami-f3d1bb9a 2>&1 )
if [[ $? > 0 ]]; then if [[ $? > 0 ]]; then
echo "$start" echo "$start" | indent
exit exit 3
fi fi
INSTANCE=$(echo "$start" | awk '/^INSTANCE/ {print $2}') INSTANCE=$(echo "$start" | awk '/^INSTANCE/ {print $2}')
terminate() { terminate() {