From 78928016f4cf38cf6751cb089200bf950d07ae93 Mon Sep 17 00:00:00 2001 From: "Robert P. J. Day" Date: Sat, 25 Mar 2017 14:03:55 -0400 Subject: 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 [ -? ... Signed-off-by: Robert P. J. Day Signed-off-by: Richard Purdie --- meta/classes/distutils-tools.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta/classes/distutils-tools.bbclass') diff --git a/meta/classes/distutils-tools.bbclass b/meta/classes/distutils-tools.bbclass index 3ef9cc5a78..6f2880ea01 100644 --- a/meta/classes/distutils-tools.bbclass +++ b/meta/classes/distutils-tools.bbclass @@ -63,7 +63,7 @@ distutils_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}/ fi } -- cgit 1.2.3-korg