summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/misc-functions.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh
index 16d3016d5..622676873 100755
--- a/bin/misc-functions.sh
+++ b/bin/misc-functions.sh
@@ -335,6 +335,8 @@ install_qa_check() {
[[ -d ${D}/${d} ]] || continue
for i in "${D}"/${d}/* ; do
[[ -L ${i} ]] && continue
+ # if empty conf.d/init.d dir exists (baselayout), then i will be "/etc/conf.d/*" and not exist
+ [[ ! -e ${i} ]] && continue
bash -n "${i}" || die "The init.d file has syntax errors: ${i}"
done
done