misc-functions.sh fix for baselayout
authorDaniel Robbins <drobbins@funtoo.org>
Sun, 27 Jun 2010 19:22:01 +0000 (13:22 -0600)
committerZac Medico <zmedico@gentoo.org>
Sun, 27 Jun 2010 21:30:58 +0000 (14:30 -0700)
bin/misc-functions.sh

index 16d3016d5a05d40572837b89e62b0d51a593ff75..622676873dc8133a7d797c5e9381e97d3145b383 100755 (executable)
@@ -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