mediatek: mt7623: use bash for generating bootable images
authorDavid Woodhouse <dwmw2@infradead.org>
Tue, 8 Sep 2020 08:26:34 +0000 (09:26 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Sat, 19 Sep 2020 12:39:29 +0000 (13:39 +0100)
It turns out that 'echo -e' isn't portable; it doesn't work in the dash
builtin echo and Ubuntu users are complaining.

I can't even get octal (specified by POSIX) to work consistently because
those  variants of 'echo' which *do* support -e don't seem to interpret
octalwithout it.

I could switch to /bin/echo but using -e with that isn't actually
portable *either* even though it works today.

For now just stick with bash, and use its builtin. We may end up using
something else entirely; perhaps perl.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
target/linux/mediatek/image/gen_mtk_mmc_img.sh

index ea8a9c63a18de9139b3947eae890e7b4c0280fcd..2dacb9019d6046856979577e1dbded91aa021853 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright © 2019 Alexey Loukianov <lx2@lexa2.ru>
 # Copyright © 2020 David Woodhouse <dwmw2@infradead.org>