Explorar o código

scripts/gen_image_generic.sh: remove $ in arithmetic

Fixes shellcheck warning:

SC2004: $/${} is unnecessary on arithmetic variables.

Signed-off-by: Rosen Penev <[email protected]>
Rosen Penev %!s(int64=5) %!d(string=hai) anos
pai
achega
2e14dd23c9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      scripts/gen_image_generic.sh

+ 1 - 1
scripts/gen_image_generic.sh

@@ -17,7 +17,7 @@ rm -f "$OUTPUT"
 
 head=16
 sect=63
-cyl=$(( ($KERNELSIZE + $ROOTFSSIZE) * 1024 * 1024 / ($head * $sect * 512)))
+cyl=$(( (KERNELSIZE + ROOTFSSIZE) * 1024 * 1024 / (head * sect * 512)))
 
 # create partition table
 set `ptgen -o "$OUTPUT" -h $head -s $sect -p ${KERNELSIZE}m -p ${ROOTFSSIZE}m ${ALIGN:+-l $ALIGN} ${SIGNATURE:+-S 0x$SIGNATURE}`