diff options
author | Graham Christensen <graham@grahamc.com> | 2020-10-29 13:59:34 -0400 |
---|---|---|
committer | Graham Christensen <graham@grahamc.com> | 2020-10-30 12:07:59 -0400 |
commit | baf7ed3f2446c433885d0b99ace294b333358183 (patch) | |
tree | 170245ae5a2bcafd7a5b72edf6526443d543860e /nixos/maintainers/scripts/ec2 | |
parent | f5994c208df64f3db0f4f69efffb3a2868e688b3 (diff) | |
download | nixpkgs-baf7ed3f2446c433885d0b99ace294b333358183.tar nixpkgs-baf7ed3f2446c433885d0b99ace294b333358183.tar.gz nixpkgs-baf7ed3f2446c433885d0b99ace294b333358183.tar.bz2 nixpkgs-baf7ed3f2446c433885d0b99ace294b333358183.tar.lz nixpkgs-baf7ed3f2446c433885d0b99ace294b333358183.tar.xz nixpkgs-baf7ed3f2446c433885d0b99ace294b333358183.tar.zst nixpkgs-baf7ed3f2446c433885d0b99ace294b333358183.zip |
nixos ec2/create-amis.sh: shellcheck: SC2155: Declare and assign separately to avoid masking return values.
Diffstat (limited to 'nixos/maintainers/scripts/ec2')
-rwxr-xr-x | nixos/maintainers/scripts/ec2/create-amis.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/nixos/maintainers/scripts/ec2/create-amis.sh b/nixos/maintainers/scripts/ec2/create-amis.sh index 6be9cd59400..085de5a647d 100755 --- a/nixos/maintainers/scripts/ec2/create-amis.sh +++ b/nixos/maintainers/scripts/ec2/create-amis.sh @@ -178,9 +178,12 @@ upload_image() { local aws_path=${image_file#/} local state_key="$region.$image_label.$image_system" - local task_id=$(read_state "$state_key" task_id) - local snapshot_id=$(read_state "$state_key" snapshot_id) - local ami_id=$(read_state "$state_key" ami_id) + local task_id + task_id=$(read_state "$state_key" task_id) + local snapshot_id + snapshot_id=$(read_state "$state_key" snapshot_id) + local ami_id + ami_id=$(read_state "$state_key" ami_id) if [ -z "$task_id" ]; then log "Checking for image on S3" |