From: Rosen Penev Date: Mon, 25 Nov 2019 22:44:46 +0000 (-0800) Subject: mvebu: gen_mvebu_sdcard_img.sh: replace let with $(()) X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=927210a828ddb15b05b873a8c65dc51fff560846;p=openwrt%2Fstaging%2Fneocturne.git mvebu: gen_mvebu_sdcard_img.sh: replace let with $(()) let is a bashism. Found with shellcheck. Signed-off-by: Rosen Penev [add prefix to commit title] Signed-off-by: Adrian Schmutzler --- diff --git a/target/linux/mvebu/image/gen_mvebu_sdcard_img.sh b/target/linux/mvebu/image/gen_mvebu_sdcard_img.sh index 100a9a96e5..c93a2bd6e2 100755 --- a/target/linux/mvebu/image/gen_mvebu_sdcard_img.sh +++ b/target/linux/mvebu/image/gen_mvebu_sdcard_img.sh @@ -79,6 +79,6 @@ while [ "$#" -ge 2 ]; do ) | dd of="$OUTFILE" bs=512 seek=$(($1 / 512)) conv=notrunc 2>/dev/null printf "Done\n" - let i=i+1 + i=$((i+1)) shift; shift done