diff options
author | Graham Christensen <graham@grahamc.com> | 2020-10-29 14:01:22 -0400 |
---|---|---|
committer | Graham Christensen <graham@grahamc.com> | 2020-10-30 12:08:00 -0400 |
commit | a66a22ca545ce94a7b69aefe163fea2c20241f9d (patch) | |
tree | f59708b7e580d148274a43445f3e888508d56896 /nixos/maintainers | |
parent | baf7ed3f2446c433885d0b99ace294b333358183 (diff) |
nixos ec2/create-amis.sh: shellcheck: read without -r mangles backslashes
Diffstat (limited to 'nixos/maintainers')
-rwxr-xr-x | nixos/maintainers/scripts/ec2/create-amis.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/maintainers/scripts/ec2/create-amis.sh b/nixos/maintainers/scripts/ec2/create-amis.sh index 085de5a647d69..6e2836a7a97db 100755 --- a/nixos/maintainers/scripts/ec2/create-amis.sh +++ b/nixos/maintainers/scripts/ec2/create-amis.sh @@ -111,7 +111,7 @@ wait_for_import() { local state snapshot_id log "Waiting for import task $task_id to be completed" while true; do - read state progress snapshot_id < <( + read -r state progress snapshot_id < <( aws ec2 describe-import-snapshot-tasks --region "$region" --import-task-ids "$task_id" | \ jq -r '.ImportSnapshotTasks[].SnapshotTaskDetail | "\(.Status) \(.Progress) \(.SnapshotId)"' ) @@ -139,7 +139,7 @@ wait_for_image() { log "Waiting for image $ami_id to be available" while true; do - read state < <( + read -r state < <( aws ec2 describe-images --image-ids "$ami_id" --region "$region" | \ jq -r ".Images[].State" ) |