]> code.ossystems Code Review - openembedded-core.git/commit
e2fsprogs/populate-extfs.sh: fix a problem on dash
authorRobert Yang <liezhi.yang@windriver.com>
Mon, 20 Jan 2014 12:24:43 +0000 (20:24 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 21 Jan 2014 10:35:19 +0000 (10:35 +0000)
commit22f90c5aec4f0b0360d1d960226f9965d83d589b
tree8f13f0e39b2db1584d0c1d780e9d24e9d328f909
parent8fcd5accbe8ffca9e0c5233419c1571741c76c03
e2fsprogs/populate-extfs.sh: fix a problem on dash

The dash can't handle the or [[ in parameter expansion, for example:

A=/usr/bin/[[
B=[[
C="${A%$B}"

The C should be "/usr/bin" in common, but it will be /usr/bin/[[ on
dash, use dirname to fix it.

NOTE:
There are 3 lines about parameter expansion, only fix the
DIR="${DIR%$TGT}" since the other 2 works will and are very useful in
this case.

[YOCTO #5712]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/e2fsprogs/e2fsprogs/populate-extfs.sh