From: Rosen Penev Date: Mon, 30 Dec 2019 05:07:55 +0000 (-0800) Subject: scripts/gen_image_generic.sh: replace deprecated backticks with $() X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3f65fe5d62052747f08c5f661a2b7793e4510372;p=oweals%2Fopenwrt.git scripts/gen_image_generic.sh: replace deprecated backticks with $() This replaces deprecated backticks by more versatile $(...) syntax. Found with shellcheck. Signed-off-by: Rosen Penev [adjust commit title and message] Signed-off-by: Adrian Schmutzler --- diff --git a/scripts/gen_image_generic.sh b/scripts/gen_image_generic.sh index 7b642c00d6..2c57d56f07 100755 --- a/scripts/gen_image_generic.sh +++ b/scripts/gen_image_generic.sh @@ -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"