mvebu: gen_mvebu_sdcard_img.sh: don't use format directly in printf
authorRosen Penev <rosenp@gmail.com>
Mon, 25 Nov 2019 22:44:47 +0000 (14:44 -0800)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Tue, 31 Dec 2019 00:00:00 +0000 (01:00 +0100)
Enables proper checking. Matches printf behavior in C.

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 c93a2bd6e29ab8d0d8b1490e6d2ffc965e2cf920..277c9377c1abb839294c33287630e61072e12b48 100755 (executable)
@@ -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"