capture stderr to show errors on failure
This commit is contained in:
1 parent
1184dc39c6
commit
7da64d77c1
1 file changed
+1
-1
+1
-1
@@ -3,7 +3,7 @@ set -e
|
||||
KEYNAME="$1"
|
||||
indent() { sed "s/^/ /"; }
|
||||
echo "-----> Booting EC2 instance..."
|
||||
start=$(ec2-run-instances -k $1 ami-f3d1bb9a 2>/dev/null)
|
||||
start=$(ec2-run-instances -k $1 ami-f3d1bb9a 2>&1 )
|
||||
if [[ $? > 0 ]]; then
|
||||
echo "$start"
|
||||
exit
|
||||
|
||||
Reference in new issue
Block a user