From a66a22ca545ce94a7b69aefe163fea2c20241f9d Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Thu, 29 Oct 2020 14:01:22 -0400 Subject: [PATCH] nixos ec2/create-amis.sh: shellcheck: read without -r mangles backslashes --- nixos/maintainers/scripts/ec2/create-amis.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/maintainers/scripts/ec2/create-amis.sh b/nixos/maintainers/scripts/ec2/create-amis.sh index 085de5a647d..6e2836a7a97 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" )