1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-30 00:20:08 +00:00

classes: Replace "if test" file tests with POSIX file tests

In entire meta/classes/ directory, replace shell tests of the form
"if test -? ..." with POSIX tests of the form "if [ -? ...

(From OE-Core rev: 78928016f4cf38cf6751cb089200bf950d07ae93)

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Robert P. J. Day
2017-03-25 14:03:55 -04:00
committed by Richard Purdie
parent 871363251a
commit f5187871ce
9 changed files with 16 additions and 17 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ distutils3_do_install() {
#
# FIXME: Bandaid against wrong datadir computation
#
if test -e ${D}${datadir}/share; then
if [ -e ${D}${datadir}/share ]; then
mv -f ${D}${datadir}/share/* ${D}${datadir}/
rmdir ${D}${datadir}/share
fi