aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2019-12-29 21:07:54 -0800
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2019-12-31 01:05:27 +0100
commit2e14dd23c9fddaae9d75f211c57e792f2839c85a (patch)
tree6110f029328f93b5fa32cc86d539ea241635eaa4
parent19be55aa37f593066039d27c41735200d477f62b (diff)
downloadupstream-2e14dd23c9fddaae9d75f211c57e792f2839c85a.tar.gz
upstream-2e14dd23c9fddaae9d75f211c57e792f2839c85a.tar.bz2
upstream-2e14dd23c9fddaae9d75f211c57e792f2839c85a.zip
scripts/gen_image_generic.sh: remove $ in arithmetic
Fixes shellcheck warning: SC2004: $/${} is unnecessary on arithmetic variables. Signed-off-by: Rosen Penev <rosenp@gmail.com>
-rwxr-xr-xscripts/gen_image_generic.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/gen_image_generic.sh b/scripts/gen_image_generic.sh
index 2d2fb120ce..7b642c00d6 100755
--- a/scripts/gen_image_generic.sh
+++ b/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}`