summary refs log tree commit diff
path: root/nixos/maintainers/scripts/ec2
diff options
context:
space:
mode:
authorGraham Christensen <graham@grahamc.com>2020-10-29 14:02:11 -0400
committerGraham Christensen <graham@grahamc.com>2020-10-30 12:08:01 -0400
commitf92a883ddb2e26e34244cf764fbfa63a4e580afa (patch)
tree9be6d6c48f4498973415b0c91cb976411b722ab7 /nixos/maintainers/scripts/ec2
parent7dac8470cf69d10bcea3a61b1919cebf12a94fe6 (diff)
downloadnixpkgs-f92a883ddb2e26e34244cf764fbfa63a4e580afa.tar
nixpkgs-f92a883ddb2e26e34244cf764fbfa63a4e580afa.tar.gz
nixpkgs-f92a883ddb2e26e34244cf764fbfa63a4e580afa.tar.bz2
nixpkgs-f92a883ddb2e26e34244cf764fbfa63a4e580afa.tar.lz
nixpkgs-f92a883ddb2e26e34244cf764fbfa63a4e580afa.tar.xz
nixpkgs-f92a883ddb2e26e34244cf764fbfa63a4e580afa.tar.zst
nixpkgs-f92a883ddb2e26e34244cf764fbfa63a4e580afa.zip
nixos ec2/create-amis.sh: shellcheck: $ is not needed in arithmetic
Diffstat (limited to 'nixos/maintainers/scripts/ec2')
-rwxr-xr-xnixos/maintainers/scripts/ec2/create-amis.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/maintainers/scripts/ec2/create-amis.sh b/nixos/maintainers/scripts/ec2/create-amis.sh
index 16aa5ce35f4..6cac4bb58d5 100755
--- a/nixos/maintainers/scripts/ec2/create-amis.sh
+++ b/nixos/maintainers/scripts/ec2/create-amis.sh
@@ -65,7 +65,7 @@ image_logical_bytes=$(read_image_info .logical_bytes)
 
 # Derived attributes
 
-image_logical_gigabytes=$((($image_logical_bytes-1)/1024/1024/1024+1)) # Round to the next GB
+image_logical_gigabytes=$(((image_logical_bytes-1)/1024/1024/1024+1)) # Round to the next GB
 
 case "$image_system" in
     aarch64-linux)