commit:     e7fb57859b18a1c5ef3fb22d71ac8a6bf74e5375
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Thu Jun  2 06:10:40 2016 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Thu Jun  2 06:10:40 2016 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=e7fb5785

install-qa-check.d/60openrc: validate bash for openrc-run shebangs

 bin/install-qa-check.d/60openrc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/install-qa-check.d/60openrc b/bin/install-qa-check.d/60openrc
index 28e3bbf..0ab27f6 100644
--- a/bin/install-qa-check.d/60openrc
+++ b/bin/install-qa-check.d/60openrc
@@ -11,7 +11,7 @@ openrc_check() {
                        [[ ! -e ${i} ]] && continue
                        if [[ ${d} == /etc/init.d && ${i} != *.sh ]] ; then
                                # skip non-shell-script for bug #451386
-                               [[ $(head -n1 "${i}") =~ 
^#!.*[[:space:]/](runscript|sh)$ ]] || continue
+                               [[ $(head -n1 "${i}") =~ 
^#!.*[[:space:]/](openrc-run|runscript|sh)$ ]] || continue
                                if [[ $(head -n1 "${i}") == '#!/sbin/runscript' 
]] ; then
                                        eqawarn "QA Notice: #!/sbin/runscript 
is deprecated, use #!/sbin/openrc-run instead:"
                                        while read -r ;

Reply via email to