Skip to content
Snippets Groups Projects
Commit 3f65fe5d authored by Rosen Penev's avatar Rosen Penev Committed by Adrian Schmutzler
Browse files

scripts/gen_image_generic.sh: replace deprecated backticks with $()


This replaces deprecated backticks by more versatile $(...) syntax.

Found with shellcheck.

Signed-off-by: default avatarRosen Penev <rosenp@gmail.com>
[adjust commit title and message]
Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
parent 2e14dd23
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@ sect=63
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}`
set $(ptgen -o "$OUTPUT" -h $head -s $sect -p ${KERNELSIZE}m -p ${ROOTFSSIZE}m ${ALIGN:+-l $ALIGN} ${SIGNATURE:+-S 0x$SIGNATURE})
KERNELOFFSET="$(($1 / 512))"
KERNELSIZE="$2"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment