[OpenWrt-Devel,02/17] gen_mvebu_sdcard_img.sh: Don't use format directly in printf
diff mbox series

Message ID 20191125224502.266177-2-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
Enables proper checking. Matches printf behavior in C.

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 c93a2bd6e2..277c9377c1 100755
--- a/target/linux/mvebu/image/gen_mvebu_sdcard_img.sh
+++ b/target/linux/mvebu/image/gen_mvebu_sdcard_img.sh
@@ -41,7 +41,7 @@  if [ -n "$BOOTLOADER" ]; then
 fi
 
 # generate image file
-printf "Creating $OUTFILE from /dev/zero: "
+printf "Creating %s from /dev/zero: " "$OUTFILE"
 dd if=/dev/zero of="$OUTFILE" bs=512 count=1 >/dev/null
 printf "Done\n"