summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/misc-functions.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh
index 8d0e8c600..1903fe0db 100755
--- a/bin/misc-functions.sh
+++ b/bin/misc-functions.sh
@@ -319,7 +319,7 @@ install_qa_check() {
# Compiled python objects do not belong in /usr/share (FHS violation)
# and can be a pain when upgrading python
- f=$(find "${D}"/usr/share -name '*.py[co]')
+ f=$([ -d "${D}"/usr/share ] && find "${D}"/usr/share -name '*.py[co]')
if [[ -n ${f} ]] ; then
vecho -ne '\a\n'
eqawarn "QA Notice: Precompiled python object files do not belong in /usr/share"