Просмотр исходного кода

mediatek: mt7623: use bash for generating bootable images

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 <[email protected]>
David Woodhouse 5 лет назад
Родитель
Сommit
7190fb2da4
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      target/linux/mediatek/image/gen_mtk_mmc_img.sh

+ 1 - 1
target/linux/mediatek/image/gen_mtk_mmc_img.sh

@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright © 2019 Alexey Loukianov <[email protected]>
 # Copyright © 2020 David Woodhouse <[email protected]>