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/distutils3.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta/classes/distutils3.bbclass') diff --git a/meta/classes/distutils3.bbclass b/meta/classes/distutils3.bbclass index a6720c5b6b..01ef72a987 100644 --- a/meta/classes/distutils3.bbclass +++ b/meta/classes/distutils3.bbclass @@ -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 -- cgit 1.2.3-korg