create-amis: use jq instead of json

This commit is contained in:
Domen Kožar 2016-11-22 01:59:40 +01:00
parent 3800b21be9
commit 49d608ac00

View File

@ -61,7 +61,7 @@ for type in $types; do
ami=$(aws ec2 copy-image \
--region "$region" \
--source-region "$prevRegion" --source-image-id "$prevAmi" \
--name "$name" --description "$description" | json -q .ImageId)
--name "$name" --description "$description" | jq -r '.ImageId')
if [ "$ami" = null ]; then break; fi
else