summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerek Straka <derek@asterius.io>2016-01-24 08:35:18 -0500
committerArmin Kuster <akuster808@gmail.com>2016-09-18 12:05:39 -0700
commit8d8671a31c07e5afdffd84de90fdb5a4149b818a (patch)
treeb097e08b87627291df468ba07ee050b3d15fa876
parent2867d498d4eae3062c95b704082e69187e625eb4 (diff)
downloadmeta-openembedded-8d8671a31c07e5afdffd84de90fdb5a4149b818a.tar.gz
php: check for existance of directory before 'rmdir' in do_install_append_class-target
Signed-off-by: Derek Straka <derek@asterius.io> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> (cherry picked from commit 7744e5992c17f78ec0fc0bf5af1208a037110469) Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--meta-oe/recipes-devtools/php/php.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta-oe/recipes-devtools/php/php.inc b/meta-oe/recipes-devtools/php/php.inc
index 67d2362ab..793ffe888 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() {
166 166
167 TMP=`dirname ${D}/${TMPDIR}` 167 TMP=`dirname ${D}/${TMPDIR}`
168 while test ${TMP} != ${D}; do 168 while test ${TMP} != ${D}; do
169 rmdir ${TMP} 169 if [ -d ${TMP} ]; then
170 rmdir ${TMP}
171 fi
170 TMP=`dirname ${TMP}`; 172 TMP=`dirname ${TMP}`;
171 done 173 done
172 174