scripts/mkits.sh: fix use of printf
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sat, 11 Jul 2020 16:46:53 +0000 (18:46 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sat, 11 Jul 2020 16:46:53 +0000 (18:46 +0200)
Due to a line break, printf was accidentally called with three
arguments instead of two, causing a different output than before.

Fix it by splitting the printf command into two lines.

Fixes: 907053193a1c ("scripts/mkits.sh: replace echo -e with printf")
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
scripts/mkits.sh

index 65071e13ee930bb73b282c28e31c27420b759819..468ef670e620dbf825fee55c578af1aa430c71d4 100755 (executable)
@@ -15,8 +15,9 @@
 #
 
 usage() {
-       printf "Usage: %s -A arch -C comp -a addr -e entry -v version"\
-                "-k kernel [-D name -d dtb] -o its_file" "$(basename "$0")"
+       printf "Usage: %s -A arch -C comp -a addr -e entry" "$(basename "$0")"
+       printf " -v version -k kernel [-D name -d dtb] -o its_file"
+
        printf "\n\t-A ==> set architecture to 'arch'"
        printf "\n\t-C ==> set compression type 'comp'"
        printf "\n\t-c ==> set config name 'config'"