mvebu: gen_mvebu_sdcard_img.sh: replace let with $(())
authorRosen Penev <rosenp@gmail.com>
Mon, 25 Nov 2019 22:44:46 +0000 (14:44 -0800)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Mon, 30 Dec 2019 23:59:55 +0000 (00:59 +0100)
let is a bashism.

Found with shellcheck.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
[add prefix to commit title]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/mvebu/image/gen_mvebu_sdcard_img.sh

index 100a9a96e5c0acbd0bffe06fbeae6d7a2ef9e1f5..c93a2bd6e29ab8d0d8b1490e6d2ffc965e2cf920 100755 (executable)
@@ -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