[OpenWrt-Devel,01/17] gen_mvebu_sdcard_img.sh: Replace let with $(())
diff mbox series

Message ID 20191125224502.266177-1-rosenp@gmail.com
State Accepted
Headers show
Series
  • [OpenWrt-Devel,01/17] gen_mvebu_sdcard_img.sh: Replace let with $(())
Related show

Commit Message

Rosen Penev Nov. 25, 2019, 10:44 p.m. UTC
let is a bashism.

Found with shellcheck.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
 target/linux/mvebu/image/gen_mvebu_sdcard_img.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch
diff mbox series

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