From dc5bc078253f9762b5ada810ea682818d0bfb1a2 Mon Sep 17 00:00:00 2001 From: Julio Montes Date: Fri, 8 Mar 2019 10:25:53 -0600 Subject: [PATCH] image-builder: fix mem boundary recalculation $/${} is unnecessary on arithmetic variables. [SC2004] Signed-off-by: Julio Montes --- image-builder/image_builder.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image-builder/image_builder.sh b/image-builder/image_builder.sh index 017b91d613..42fd082361 100755 --- a/image-builder/image_builder.sh +++ b/image-builder/image_builder.sh @@ -252,7 +252,7 @@ create_rootfs_disk() # of disk creation by adding 5% in the inital assumed value $ROOTFS_SIZE if [ $ROOTFS_SIZE -gt $AVAIL_DISK ]; then # Increase the size but remain aligned to the original MEM_BOUNDARY_MB, which is stored in $ORIG_MEM_BOUNDARY_MB - MEM_BOUNDARY_MB=$(($MEM_BOUNDARY_MB+$ORIG_MEM_BOUNDARY_MB)) + MEM_BOUNDARY_MB=$((MEM_BOUNDARY_MB+ORIG_MEM_BOUNDARY_MB)) OLD_IMG_SIZE=${IMG_SIZE} unset IMG_SIZE unmount