mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 12:29:02 +02:00
create-amis: use jq instead of json
This commit is contained in:
parent
3800b21be9
commit
49d608ac00
|
@ -61,7 +61,7 @@ for type in $types; do
|
||||||
ami=$(aws ec2 copy-image \
|
ami=$(aws ec2 copy-image \
|
||||||
--region "$region" \
|
--region "$region" \
|
||||||
--source-region "$prevRegion" --source-image-id "$prevAmi" \
|
--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
|
if [ "$ami" = null ]; then break; fi
|
||||||
else
|
else
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue