diff --git a/meta-oe/recipes-devtools/php/php.inc b/meta-oe/recipes-devtools/php/php.inc index 67d2362abe..793ffe8885 100644 --- a/meta-oe/recipes-devtools/php/php.inc +++ b/meta-oe/recipes-devtools/php/php.inc @@ -166,7 +166,9 @@ do_install_append_class-target() { TMP=`dirname ${D}/${TMPDIR}` while test ${TMP} != ${D}; do - rmdir ${TMP} + if [ -d ${TMP} ]; then + rmdir ${TMP} + fi TMP=`dirname ${TMP}`; done