avoid many false positives
authorFabian Groffen <grobian@gentoo.org>
Mon, 14 Sep 2009 09:50:41 +0000 (09:50 -0000)
committerFabian Groffen <grobian@gentoo.org>
Mon, 14 Sep 2009 09:50:41 +0000 (09:50 -0000)
svn path=/main/branches/prefix/; revision=14266

bin/misc-functions.sh

index 74c5f05dbc6ecffc79e3e8201629276675469d44..5444379d3751b47217a566baad665004122f0aae 100644 (file)
@@ -475,7 +475,7 @@ install_qa_check() {
                # know they don't work (bug #196294) so as long as that one
                # remains an issue, simply remove them as they won't work
                # anyway
-               if [[ -d "${ED}"/etc/conf.d || "${ED}"/etc/init.d ]] ; then
+               if [[ -d "${ED}"/etc/conf.d || -d "${ED}"/etc/init.d ]] ; then
                        ewarn "removed /etc/init.d and /etc/conf.d directories until bug #196294 has been resolved"
                        rm -Rf "${ED}"/etc/{conf,init}.d
                fi