try and figure out why it silently fails
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user