]> code.ossystems Code Review - openembedded-core.git/commit
toolchain-shar-extract.sh: remove checkbashism
authorRobert Yang <liezhi.yang@windriver.com>
Wed, 16 Sep 2015 02:04:09 +0000 (19:04 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 24 Sep 2015 16:52:48 +0000 (17:52 +0100)
commite951e20c4ef6a3f003f84e8f1bea568d1b7ef541
treed5f97221d340afe92c3137e244bf9f2abf710458
parent4b9f70f03cbefe9db758500e3ad89f7a8ff8226e
toolchain-shar-extract.sh: remove checkbashism

Fixed when sh is bash:
$ sh ./tmp/deploy/sdk/poky-glibc-x86_64-core-image-minimal-core2-64-toolchain-1.8+snapshot.sh
Poky (Yocto Project Reference Distro) SDK installer version 1.8+snapshot
===========================================================
./tmp/deploy/sdk/poky-glibc-x86_64-core-image-minimal-core2-64-toolchain-1.8+snapshot.sh: 77: read: Illegal option -e
You are about to install the SDK to "/opt/poky/1.8+snapshot". Proceed[Y/n]? ../SDK2
Installation aborted!

There is ony one bashism "read -e" in toolchain-shar-extract.sh, but
'-e' is useless here, so remove it and use /bin/sh.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/files/toolchain-shar-extract.sh